Changeset 3362


Ignore:
Timestamp:
Feb 26, 2013 1:34:35 PM (11 years ago)
Author:
ldelgass
Message:

Merge nanovis2 branch to trunk

Location:
trunk
Files:
19 deleted
52 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/gui/scripts/flowvisviewer.tcl

    r3330 r3362  
    125125    private method arrows { tag name }
    126126
     127    private variable _arcball ""
     128    private variable _useArcball 1
    127129    private variable _outbuf       ;# buffer for outgoing commands
    128130
     
    220222    $_parser alias legend [itcl::code $this ReceiveLegend]
    221223    $_parser alias data [itcl::code $this ReceiveData]
     224    $_parser alias viserror [itcl::code $this ReceiveError]
    222225
    223226    # Initialize the view to some default parameters.
    224227    array set _view {
     228        qw      0.853553
     229        qx      -0.353553
     230        qy      0.353553
     231        qz      0.146447
    225232        theta   45
    226233        phi     45
     
    230237        pan-y   0
    231238    }
     239    set _arcball [blt::arcball create 100 100]
     240    set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     241    $_arcball quaternion $q
     242
    232243    set _limits(vmin) 0.0
    233244    set _limits(vmax) 1.0
    234245
    235246    array set _settings [subst {
     247        $this-qw                $_view(qw)
     248        $this-qx                $_view(qx)
     249        $this-qy                $_view(qy)
     250        $this-qz                $_view(qz)
     251        $this-theta             $_view(theta)
     252        $this-phi               $_view(phi)
     253        $this-psi               $_view(psi)
     254        $this-zoom              $_view(zoom)   
     255        $this-pan-x             $_view(pan-x)
     256        $this-pan-y             $_view(pan-y)
    236257        $this-arrows            0
    237258        $this-currenttime       0
    238259        $this-duration          1:00
    239260        $this-loop              0
    240         $this-pan-x             $_view(pan-x)
    241         $this-pan-y             $_view(pan-y)
    242         $this-phi               $_view(phi)
    243261        $this-play              0
    244         $this-psi               $_view(psi)
    245262        $this-speed             500
    246263        $this-step              0
    247264        $this-streams           0
    248         $this-theta             $_view(theta)
    249265        $this-volume            1
    250266        $this-xcutplane         0
     
    254270        $this-zcutplane         0
    255271        $this-zcutposition      0
    256         $this-zoom              $_view(zoom)
    257272    }]
    258273
     
    554569    image delete $_image(legend)
    555570    image delete $_image(download)
     571    catch { blt::arcball destroy $_arcball }
    556572    array unset _settings $this-*
    557573}
     
    10071023    }
    10081024
    1009     # Insure that the global opacity and thickness settings (in the slider
     1025    # Ensure that the global opacity and thickness settings (in the slider
    10101026    # settings widgets) are used for the active transfer-function.  Update the
    10111027    # values in the _settings varible.
     
    11811197    set w [winfo width $itk_component(3dview)]
    11821198    set h [winfo height $itk_component(3dview)]
     1199    $_arcball resize $w $h
    11831200    EventuallyResize $w $h
    11841201
     
    12291246            array set _view $location
    12301247        }
    1231     }
     1248
     1249        if 1 {
     1250            # Tell the server the name of the tool, the version, and
     1251            # dataset that we are rendering.  Have to do it here because
     1252            # we don't know what data objects are using the renderer until
     1253            # be get here.
     1254            global env
     1255
     1256            lappend out "hub" [exec hostname]
     1257            lappend out "viewer" "flowvisviewer"
     1258            if { [info exists env(USER)] } {
     1259                lappend out "user" $env(USER)
     1260            }
     1261            if { [info exists env(SESSION)] } {
     1262                lappend out "session" $env(SESSION)
     1263            }
     1264            lappend out "tool_id"      [$_first hints toolId]
     1265            lappend out "tool_name"    [$_first hints toolName]
     1266            lappend out "tool_version" [$_first hints toolRevision]
     1267            lappend out "tool_title"   [$_first hints toolTitle]
     1268            lappend out "tool_dataset" [$_first hints label]
     1269            SendCmd "clientinfo [list $out]"
     1270        }
     1271    }
     1272    set _settings($this-qw)    $_view(qw)
     1273    set _settings($this-qx)    $_view(qx)
     1274    set _settings($this-qy)    $_view(qy)
     1275    set _settings($this-qz)    $_view(qz)
    12321276    set _settings($this-theta) $_view(theta)
    12331277    set _settings($this-phi)   $_view(phi)
     
    12371281    set _settings($this-zoom)  $_view(zoom)
    12381282
    1239     set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    1240     SendCmd "camera angle $xyz"
     1283    if {$_useArcball} {
     1284        set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     1285        $_arcball quaternion $q
     1286        SendCmd "camera orient $q"
     1287    } else {
     1288        set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
     1289        SendCmd "camera angle $xyz"
     1290    }
    12411291    PanCamera
    12421292    SendCmd "camera zoom $_view(zoom)"
     
    13301380        "reset" {
    13311381            array set _view {
     1382                qw      0.853553
     1383                qx      -0.353553
     1384                qy      0.353553
     1385                qz      0.146447
    13321386                theta   45
    13331387                phi     45
     
    13431397                }
    13441398            }
    1345             set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    1346             SendCmd "camera angle $xyz"
     1399            if {$_useArcball} {
     1400                set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     1401                $_arcball quaternion $q
     1402                SendCmd "camera orient $q"
     1403            } else {
     1404                set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
     1405                SendCmd "camera angle $xyz"
     1406            }
    13471407            PanCamera
     1408            set _settings($this-qw)    $_view(qw)
     1409            set _settings($this-qx)    $_view(qx)
     1410            set _settings($this-qy)    $_view(qy)
     1411            set _settings($this-qz)    $_view(qz)
    13481412            set _settings($this-theta) $_view(theta)
    13491413            set _settings($this-phi)   $_view(phi)
     
    14001464                }
    14011465
    1402                 #
    1403                 # Rotate the camera in 3D
    1404                 #
    1405                 if {$_view(psi) > 90 || $_view(psi) < -90} {
    1406                     # when psi is flipped around, theta moves backwards
    1407                     set dy [expr {-$dy}]
     1466                if {$_useArcball} {
     1467                    set q [$_arcball rotate $x $y $_click(x) $_click(y)]
     1468                    foreach { _view(qw) _view(qx) _view(qy) _view(qz) } $q break
     1469                    set _settings($this-qw) $_view(qw)
     1470                    set _settings($this-qx) $_view(qx)
     1471                    set _settings($this-qy) $_view(qy)
     1472                    set _settings($this-qz) $_view(qz)
     1473                    SendCmd "camera orient $q"
     1474                } else {
     1475                    #
     1476                    # Rotate the camera in 3D
     1477                    #
     1478                    if {$_view(psi) > 90 || $_view(psi) < -90} {
     1479                        # when psi is flipped around, theta moves backwards
     1480                        set dy [expr {-$dy}]
     1481                    }
     1482                    set theta [expr {$_view(theta) - $dy*180}]
     1483                    while {$theta < 0} { set theta [expr {$theta+180}] }
     1484                    while {$theta > 180} { set theta [expr {$theta-180}] }
     1485
     1486                    if {abs($theta) >= 30 && abs($theta) <= 160} {
     1487                        set phi [expr {$_view(phi) - $dx*360}]
     1488                        while {$phi < 0} { set phi [expr {$phi+360}] }
     1489                        while {$phi > 360} { set phi [expr {$phi-360}] }
     1490                        set psi $_view(psi)
     1491                    } else {
     1492                        set phi $_view(phi)
     1493                        set psi [expr {$_view(psi) - $dx*360}]
     1494                        while {$psi < -180} { set psi [expr {$psi+360}] }
     1495                        while {$psi > 180} { set psi [expr {$psi-360}] }
     1496                    }
     1497
     1498                    set _view(theta)        $theta
     1499                    set _view(phi)          $phi
     1500                    set _view(psi)          $psi
     1501                    set xyz [Euler2XYZ $theta $phi $psi]
     1502                    set _settings($this-theta) $_view(theta)
     1503                    set _settings($this-phi)   $_view(phi)
     1504                    set _settings($this-psi)   $_view(psi)
     1505                    SendCmd "camera angle $xyz"
    14081506                }
    1409                 set theta [expr {$_view(theta) - $dy*180}]
    1410                 while {$theta < 0} { set theta [expr {$theta+180}] }
    1411                 while {$theta > 180} { set theta [expr {$theta-180}] }
    1412 
    1413                 if {abs($theta) >= 30 && abs($theta) <= 160} {
    1414                     set phi [expr {$_view(phi) - $dx*360}]
    1415                     while {$phi < 0} { set phi [expr {$phi+360}] }
    1416                     while {$phi > 360} { set phi [expr {$phi-360}] }
    1417                     set psi $_view(psi)
    1418                 } else {
    1419                     set phi $_view(phi)
    1420                     set psi [expr {$_view(psi) - $dx*360}]
    1421                     while {$psi < -180} { set psi [expr {$psi+360}] }
    1422                     while {$psi > 180} { set psi [expr {$psi-360}] }
    1423                 }
    1424 
    1425                 set _view(theta)        $theta
    1426                 set _view(phi)          $phi
    1427                 set _view(psi)          $psi
    1428                 set xyz [Euler2XYZ $theta $phi $psi]
    1429                 set _settings($this-theta) $_view(theta)
    1430                 set _settings($this-phi)   $_view(phi)
    1431                 set _settings($this-psi)   $_view(psi)
    1432                 SendCmd "camera angle $xyz"
     1507
    14331508                set _click(x) $x
    14341509                set _click(y) $y
     
    16031678                set tag $_first-$comp
    16041679                set diffuse [expr {0.01*$_settings($this-light)}]
    1605                 set specular [expr {sqrt($_settings($this-light)+1.0)}]
    1606                 SendCmd "$tag configure -diffuse $diffuse -specular $specular"
     1680                set ambient [expr {1.0 - $diffuse}]
     1681                set specularLevel 0.3
     1682                set specularExp 90.0
     1683                SendCmd "$tag configure -ambient $ambient -diffuse $diffuse -specularLevel $specularLevel -specularExp $specularExp"
    16071684            }
    16081685        }
     
    16111688                set comp [lindex [$_first components] 0]
    16121689                set tag $_first-$comp
    1613                 set opacity [expr {0.2*$_settings($this-transp)+1}]
     1690                set opacity [expr { 0.01 * double($_settings($this-transp)) }]
    16141691                SendCmd "$tag configure -opacity $opacity"
    16151692            }
     
    20732150}
    20742151
    2075 
    2076 
    20772152itcl::body Rappture::FlowvisViewer::BuildViewTab {} {
    20782153    foreach { key value } {
     
    21862261    label $inner.shading -text "Shading:" -font $fg
    21872262
    2188     label $inner.dim -text "Dim" -font $fg
     2263    label $inner.dim -text "Glow" -font $fg
    21892264    ::scale $inner.light -from 0 -to 100 -orient horizontal \
    21902265        -variable [itcl::scope _settings($this-light)] \
    21912266        -width 10 \
    21922267        -showvalue off -command [itcl::code $this FixSettings light]
    2193     label $inner.bright -text "Bright" -font $fg
    2194 
    2195     label $inner.fog -text "Fog" -font $fg
     2268    label $inner.bright -text "Surface" -font $fg
     2269
     2270    label $inner.fog -text "Clear" -font $fg
    21962271    ::scale $inner.transp -from 0 -to 100 -orient horizontal \
    21972272        -variable [itcl::scope _settings($this-transp)] \
    21982273        -width 10 \
    21992274        -showvalue off -command [itcl::code $this FixSettings transp]
    2200     label $inner.plastic -text "Plastic" -font $fg
     2275    label $inner.plastic -text "Opaque" -font $fg
    22012276
    22022277    label $inner.clear -text "Clear" -font $fg
     
    22232298        3,1 $inner.transp -columnspan 2 -pady 2 -fill x \
    22242299        3,3 $inner.plastic -anchor w -pady 2 \
    2225         4,0 $inner.clear -anchor e -pady 2 \
    2226         4,1 $inner.opacity -columnspan 2 -pady 2 -fill x\
    2227         4,3 $inner.opaque -anchor w -pady 2 \
    2228         5,0 $inner.thin -anchor e -pady 2 \
    2229         5,1 $inner.thickness -columnspan 2 -pady 2 -fill x\
    2230         5,3 $inner.thick -anchor w -pady 2
     2300        4,0 $inner.thin -anchor e -pady 2 \
     2301        4,1 $inner.thickness -columnspan 2 -pady 2 -fill x\
     2302        4,3 $inner.thick -anchor w -pady 2
    22312303
    22322304    if 0 {
     
    22452317    }
    22462318    blt::table configure $inner c0 c1 c3 r* -resize none
    2247     blt::table configure $inner r6 -resize expand
     2319    blt::table configure $inner r5 -resize expand
    22482320}
    22492321
     
    23552427    $inner configure -borderwidth 4
    23562428
    2357     set labels { phi theta psi pan-x pan-y zoom }
     2429    if {$_useArcball} {
     2430        set labels { qw qx qy qz pan-x pan-y zoom }
     2431    } else {
     2432        set labels { phi theta psi pan-x pan-y zoom }
     2433    }
    23582434    set row 0
    23592435    foreach tag $labels {
     
    25372613    set _width $w
    25382614    set _height $h
     2615    $_arcball resize $w $h
    25392616    if { !$_resizePending } {
    25402617        $_dispatcher event -after 200 !resize
     
    25812658                    set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    25822659                    SendCmd "camera angle $xyz"
     2660                    if {$_useArcball} {
     2661                        $_arcball euler [list [expr {-[lindex $xyz 2]}] [expr {-[lindex $xyz 1]}] [expr {-[lindex $xyz 0]}]]
     2662                        set q [$_arcball quaternion]
     2663                        foreach { _view(qw) _view(qx) _view(qy) _view(qz) } $q break
     2664                        set _settings($this-qw) $_view(qw)
     2665                        set _settings($this-qx) $_view(qx)
     2666                        set _settings($this-qy) $_view(qy)
     2667                        set _settings($this-qz) $_view(qz)
     2668                    }
     2669                }
     2670                "qx" - "qy" - "qz" - "qw" {
     2671                    set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     2672                    $_arcball quaternion $q
     2673                    SendCmd "camera orient $q"
    25832674                }
    25842675                "zoom" {
  • trunk/gui/scripts/isomarker.tcl

    r3330 r3362  
    116116        array set limits [$_nvobj limits $_tf]
    117117        if { $limits(vmax) == $limits(vmin) } {
    118             set limits(min) 0.0
    119             set limits(max) 1.0
     118            set limits(vmin) 0.0
     119            set limits(vmax) 1.0
    120120        }
    121121        if { [catch {expr $limits(vmax) - $limits(vmin)} r] != 0 } {
  • trunk/gui/scripts/nanovisviewer.tcl

    r3339 r3362  
    120120    private method SetOrientation {}
    121121
     122    private variable _arcball ""
     123    private variable _useArcball 1
    122124    private variable _outbuf       ;# buffer for outgoing commands
    123125
     
    130132                                   ;# in the server.
    131133    private variable _recvdDatasets    ;# list of data objs to send to server
    132     private variable _vol2style    ;# maps dataobj-component to transfunc
     134    private variable _dataset2style    ;# maps dataobj-component to transfunc
    133135    private variable _style2datasets   ;# maps tf back to list of
    134136                                    # dataobj-components using the tf.
     
    199201    # Initialize the view to some default parameters.
    200202    array set _view {
     203        qw      0.853553
     204        qx      -0.353553
     205        qy      0.353553
     206        qz      0.146447
    201207        theta   45
    202208        phi     45
     
    206212        pan-y   0
    207213    }
     214    set _arcball [blt::arcball create 100 100]
     215    set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     216    $_arcball quaternion $q
     217
    208218    set _limits(vmin) 0.0
    209219    set _limits(vmax) 1.0
     
    211221
    212222    array set _settings [subst {
     223        $this-qw                $_view(qw)
     224        $this-qx                $_view(qx)
     225        $this-qy                $_view(qy)
     226        $this-qz                $_view(qz)
     227        $this-theta             $_view(theta)
     228        $this-phi               $_view(phi)
     229        $this-psi               $_view(psi)
     230        $this-zoom              $_view(zoom)   
    213231        $this-pan-x             $_view(pan-x)
    214232        $this-pan-y             $_view(pan-y)
    215         $this-phi               $_view(phi)
    216         $this-psi               $_view(psi)
    217         $this-theta             $_view(theta)
    218233        $this-volume            1
    219234        $this-xcutplane         0
     
    223238        $this-zcutplane         0
    224239        $this-zcutposition      0
    225         $this-zoom              $_view(zoom)
    226240    }]
    227241
     
    379393    image delete $_image(legend)
    380394    image delete $_image(download)
     395    catch { blt::arcball destroy $_arcball }
    381396    array unset _settings $this-*
    382397}
     
    491506            array unset _limits $dataobj*
    492507            array unset _obj2ovride $dataobj-*
    493             array unset _vol2style $dataobj-*
     508            array unset _dataset2style $dataobj-*
    494509            set changed 1
    495510        }
     
    676691            # The volume hasn't reached the server yet.  How did we get
    677692            # here?
     693            puts stderr "Don't have $vol in _serverVols"
    678694            continue
    679695        }
    680         if { ![info exists _vol2style($tag)] } {
    681             puts stderr "unknown volume $tag"
     696        if { ![info exists _dataset2style($tag)] } {
     697            puts stderr "Don't have style for volume $tag"
    682698            continue;                        # How does this happen?
    683699        }
    684         set tf $_vol2style($tag)
     700        set tf $_dataset2style($tag)
    685701        set _settings($this-$tf-opacity) $opacity
    686702        set _settings($this-$tf-thickness) $thickness
     
    819835        return
    820836    }
     837
     838    puts stderr "Received volume info: '$args'"
     839
    821840    # Arguments from server are name value pairs. Stuff them in an array.
    822841    array set info $args
     
    872891    set w [winfo width $itk_component(3dview)]
    873892    set h [winfo height $itk_component(3dview)]
     893    $_arcball resize $w $h
    874894    EventuallyResize $w $h
    875895
     
    894914        # Reset the camera and other view parameters
    895915        #
    896        
     916        set _settings($this-qw)    $_view(qw)
     917        set _settings($this-qx)    $_view(qx)
     918        set _settings($this-qy)    $_view(qy)
     919        set _settings($this-qz)    $_view(qz)
    897920        set _settings($this-theta) $_view(theta)
    898921        set _settings($this-phi)   $_view(phi)
     
    901924        set _settings($this-pan-y) $_view(pan-y)
    902925        set _settings($this-zoom)  $_view(zoom)
    903        
    904         set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    905         SendCmd "camera angle $xyz"
     926
     927        if {$_useArcball} {
     928            set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     929            $_arcball quaternion $q
     930            SendCmd "camera orient $q"
     931        } else {
     932            set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
     933            SendCmd "camera angle $xyz"
     934        }
     935
    906936        PanCamera
    907937        SendCmd "camera zoom $_view(zoom)"
     938        FixSettings light2side
    908939        FixSettings light
    909940        FixSettings transp
     
    10211052        "reset" {
    10221053            array set _view {
     1054                qw      0.853553
     1055                qx      -0.353553
     1056                qy      0.353553
     1057                qz      0.146447
    10231058                theta   45
    10241059                phi     45
     
    10341069                }
    10351070            }
    1036             set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    1037             SendCmd "camera angle $xyz"
     1071            if {$_useArcball} {
     1072                set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     1073                $_arcball quaternion $q
     1074                SendCmd "camera orient $q"
     1075            } else {
     1076                set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
     1077                SendCmd "camera angle $xyz"
     1078            }
     1079
    10381080            PanCamera
     1081            set _settings($this-qw)    $_view(qw)
     1082            set _settings($this-qx)    $_view(qx)
     1083            set _settings($this-qy)    $_view(qy)
     1084            set _settings($this-qz)    $_view(qz)
    10391085            set _settings($this-theta) $_view(theta)
    10401086            set _settings($this-phi)   $_view(phi)
     
    10921138                }
    10931139
    1094                 #
    1095                 # Rotate the camera in 3D
    1096                 #
    1097                 if {$_view(psi) > 90 || $_view(psi) < -90} {
    1098                     # when psi is flipped around, theta moves backwards
    1099                     set dy [expr {-$dy}]
     1140                if {$_useArcball} {
     1141                    set q [$_arcball rotate $x $y $_click(x) $_click(y)]
     1142                    foreach { _view(qw) _view(qx) _view(qy) _view(qz) } $q break
     1143                    set _settings($this-qw) $_view(qw)
     1144                    set _settings($this-qx) $_view(qx)
     1145                    set _settings($this-qy) $_view(qy)
     1146                    set _settings($this-qz) $_view(qz)
     1147                    SendCmd "camera orient $q"
     1148                } else {
     1149                    #
     1150                    # Rotate the camera in 3D
     1151                    #
     1152                    if {$_view(psi) > 90 || $_view(psi) < -90} {
     1153                        # when psi is flipped around, theta moves backwards
     1154                        set dy [expr {-$dy}]
     1155                    }
     1156                    set theta [expr {$_view(theta) - $dy*180}]
     1157                    while {$theta < 0} { set theta [expr {$theta+180}] }
     1158                    while {$theta > 180} { set theta [expr {$theta-180}] }
     1159
     1160                    if {abs($theta) >= 30 && abs($theta) <= 160} {
     1161                        set phi [expr {$_view(phi) - $dx*360}]
     1162                        while {$phi < 0} { set phi [expr {$phi+360}] }
     1163                        while {$phi > 360} { set phi [expr {$phi-360}] }
     1164                        set psi $_view(psi)
     1165                    } else {
     1166                        set phi $_view(phi)
     1167                        set psi [expr {$_view(psi) - $dx*360}]
     1168                        while {$psi < -180} { set psi [expr {$psi+360}] }
     1169                        while {$psi > 180} { set psi [expr {$psi-360}] }
     1170                    }
     1171
     1172                    set _view(theta)        $theta
     1173                    set _view(phi)          $phi
     1174                    set _view(psi)          $psi
     1175                    set xyz [Euler2XYZ $theta $phi $psi]
     1176                    set _settings($this-theta) $_view(theta)
     1177                    set _settings($this-phi)   $_view(phi)
     1178                    set _settings($this-psi)   $_view(psi)
     1179                    SendCmd "camera angle $xyz"
    11001180                }
    1101                 set theta [expr {$_view(theta) - $dy*180}]
    1102                 while {$theta < 0} { set theta [expr {$theta+180}] }
    1103                 while {$theta > 180} { set theta [expr {$theta-180}] }
    1104 
    1105                 if {abs($theta) >= 30 && abs($theta) <= 160} {
    1106                     set phi [expr {$_view(phi) - $dx*360}]
    1107                     while {$phi < 0} { set phi [expr {$phi+360}] }
    1108                     while {$phi > 360} { set phi [expr {$phi-360}] }
    1109                     set psi $_view(psi)
    1110                 } else {
    1111                     set phi $_view(phi)
    1112                     set psi [expr {$_view(psi) - $dx*360}]
    1113                     while {$psi < -180} { set psi [expr {$psi+360}] }
    1114                     while {$psi > 180} { set psi [expr {$psi-360}] }
    1115                 }
    1116 
    1117                 set _view(theta)        $theta
    1118                 set _view(phi)          $phi
    1119                 set _view(psi)          $psi
    1120                 set xyz [Euler2XYZ $theta $phi $psi]
    1121                 set _settings($this-theta) $_view(theta)
    1122                 set _settings($this-phi)   $_view(phi)
    1123                 set _settings($this-psi)   $_view(psi)
    1124                 SendCmd "camera angle $xyz"
     1181
    11251182                set _click(x) $x
    11261183                set _click(y) $y
     
    11931250            if {[isconnected]} {
    11941251                set val $_settings($this-light)
    1195                 set sval [expr {0.01*$val}]
    1196                 SendCmd "volume shading diffuse $sval"
    1197                 set sval [expr {sqrt($val+1.0)}]
    1198                 SendCmd "volume shading specular $sval"
     1252                set diffuse [expr {0.01*$val}]
     1253                set ambient [expr {1.0-$diffuse}]
     1254                set specularLevel 0.3
     1255                set specularExp 90.0
     1256                SendCmd "volume shading ambient $ambient"
     1257                SendCmd "volume shading diffuse $diffuse"
     1258                SendCmd "volume shading specularLevel $specularLevel"
     1259                SendCmd "volume shading specularExp $specularExp"
     1260            }
     1261        }
     1262        light2side {
     1263            if {[isconnected]} {
     1264                set val $_settings($this-light2side)
     1265                SendCmd "volume shading light2side $val"
    11991266            }
    12001267        }
     
    12021269            if {[isconnected]} {
    12031270                set val $_settings($this-transp)
    1204                 set sval [expr {0.2*$val+1}]
     1271                set sval [expr { 0.01 * double($val) }]
    12051272                SendCmd "volume shading opacity $sval"
    12061273            }
     
    12171284            }
    12181285        }
    1219 
    12201286        thickness {
    12211287            if {[isconnected] && [array names _activeTfs] > 0 } {
     
    13021368    if {$w > 0 && $h > 0 && [array names _activeTfs] > 0 && $_first != "" } {
    13031369        set tag [lindex [CurrentDatasets] 0]
    1304         if { [info exists _vol2style($tag)] } {
    1305             SendCmd "legend $_vol2style($tag) $w $h"
     1370        if { [info exists _dataset2style($tag)] } {
     1371            SendCmd "legend $_dataset2style($tag) $w $h"
    13061372        }
    13071373    } else {
     
    13331399        -levels 6
    13341400        -opacity 1.0
     1401        -markers ""
    13351402    }
    13361403    set tag $dataobj-$cname
    13371404    array set style [lindex [$dataobj components -style $cname] 0]
    13381405    set tf "$style(-color):$style(-levels):$style(-opacity)"
    1339     set _vol2style($tag) $tf
     1406    set _dataset2style($tag) $tf
    13401407    lappend _style2datasets($tf) $tag
    13411408    return $tf
     
    13561423        -levels 6
    13571424        -opacity 1.0
     1425        -markers ""
    13581426    }
    13591427    foreach {dataobj cname} [split [lindex $_style2datasets($tf) 0] -] break
    13601428    array set style [lindex [$dataobj components -style $cname] 0]
    13611429
     1430    puts stderr "$tf: $style(-color), $style(-levels), $style(-opacity), $style(-markers)"
    13621431
    13631432    # We have to parse the style attributes for a volume using this
     
    13761445    if { ![info exists _isomarkers($tf)] } {
    13771446        # Have to defer creation of isomarkers until we have data limits
    1378         if { [info exists style(-markers)] } {
     1447        if { [info exists style(-markers)] &&
     1448             [llength $style(-markers)] > 0 } {
    13791449            ParseMarkersOption $tf $style(-markers)
     1450            puts stderr "Found markers option"
    13801451        } else {
    13811452            ParseLevelsOption $tf $style(-levels)
     
    13861457    }
    13871458    set clist [split $style(-color) :]
    1388     set cmap "0.0 [Color2RGB white] "
     1459    if {[llength $clist] == 1} {
     1460        lappend clist [lindex $clist 0]
     1461    }
    13891462    for {set i 0} {$i < [llength $clist]} {incr i} {
    1390         set x [expr {double($i+1)/([llength $clist]+1)}]
     1463        set x [expr {double($i)/([llength $clist]-1)}]
    13911464        set color [lindex $clist $i]
    13921465        append cmap "$x [Color2RGB $color] "
    13931466    }
    1394     append cmap "1.0 [Color2RGB $color]"
    13951467
    13961468    set tag $this-$tf
     
    13981470        set _settings($tag-opacity) $style(-opacity)
    13991471    }
    1400     set max $_settings($tag-opacity)
     1472    set max 1.0 ;#$_settings($tag-opacity)
    14011473
    14021474    set isovalues {}
     
    14081480
    14091481    if { ![info exists _settings($tag-thickness)]} {
    1410         set _settings($tag-thickness) 0.05
     1482        set _settings($tag-thickness) 0.005
    14111483    }
    14121484    set delta $_settings($tag-thickness)
     
    15631635    }
    15641636    set tag [lindex [CurrentDatasets] 0]
    1565     set tf $_vol2style($tag)
     1637    set tf $_dataset2style($tag)
    15661638    set c $itk_component(legend)
    15671639    set m [Rappture::IsoMarker \#auto $c $this $tf]
     
    17181790itcl::body Rappture::NanovisViewer::BuildVolumeTab {} {
    17191791    foreach { key value } {
     1792        light2side      0
    17201793        light           40
    17211794        transp          50
     
    17391812    label $inner.shading -text "Shading:" -font $fg
    17401813
    1741     label $inner.dim -text "Dim" -font $fg
     1814    checkbutton $inner.light2side -text "Two-sided lighting" -font $fg \
     1815        -variable [itcl::scope _settings($this-light2side)] \
     1816        -command [itcl::code $this FixSettings light2side]
     1817
     1818    label $inner.dim -text "Glow" -font $fg
    17421819    ::scale $inner.light -from 0 -to 100 -orient horizontal \
    17431820        -variable [itcl::scope _settings($this-light)] \
    17441821        -width 10 \
    17451822        -showvalue off -command [itcl::code $this FixSettings light]
    1746     label $inner.bright -text "Bright" -font $fg
    1747 
    1748     label $inner.fog -text "Fog" -font $fg
     1823    label $inner.bright -text "Surface" -font $fg
     1824
     1825    label $inner.fog -text "Clear" -font $fg
    17491826    ::scale $inner.transp -from 0 -to 100 -orient horizontal \
    17501827        -variable [itcl::scope _settings($this-transp)] \
    17511828        -width 10 \
    17521829        -showvalue off -command [itcl::code $this FixSettings transp]
    1753     label $inner.plastic -text "Plastic" -font $fg
     1830    label $inner.plastic -text "Opaque" -font $fg
    17541831
    17551832    label $inner.clear -text "Clear" -font $fg
     
    17701847        0,0 $inner.vol -columnspan 4 -anchor w -pady 2 \
    17711848        1,0 $inner.shading -columnspan 4 -anchor w -pady {10 2} \
    1772         2,0 $inner.dim -anchor e -pady 2 \
    1773         2,1 $inner.light -columnspan 2 -pady 2 -fill x \
    1774         2,3 $inner.bright -anchor w -pady 2 \
    1775         3,0 $inner.fog -anchor e -pady 2 \
    1776         3,1 $inner.transp -columnspan 2 -pady 2 -fill x \
    1777         3,3 $inner.plastic -anchor w -pady 2 \
    1778         4,0 $inner.clear -anchor e -pady 2 \
    1779         4,1 $inner.opacity -columnspan 2 -pady 2 -fill x\
    1780         4,3 $inner.opaque -anchor w -pady 2 \
     1849        2,0 $inner.light2side -columnspan 4 -anchor w -pady 2 \
     1850        3,0 $inner.dim -anchor e -pady 2 \
     1851        3,1 $inner.light -columnspan 2 -pady 2 -fill x \
     1852        3,3 $inner.bright -anchor w -pady 2 \
     1853        4,0 $inner.fog -anchor e -pady 2 \
     1854        4,1 $inner.transp -columnspan 2 -pady 2 -fill x \
     1855        4,3 $inner.plastic -anchor w -pady 2 \
    17811856        5,0 $inner.thin -anchor e -pady 2 \
    17821857        5,1 $inner.thickness -columnspan 2 -pady 2 -fill x\
    17831858        5,3 $inner.thick -anchor w -pady 2
     1859
     1860#        4,0 $inner.clear -anchor e -pady 2 \
     1861#        4,1 $inner.opacity -columnspan 2 -pady 2 -fill x\
     1862#        4,3 $inner.opaque -anchor w -pady 2 \
     1863
    17841864
    17851865    blt::table configure $inner c0 c1 c3 r* -resize none
     
    18941974    $inner configure -borderwidth 4
    18951975
    1896     set labels { phi theta psi pan-x pan-y zoom }
     1976    if {$_useArcball} {
     1977        set labels { qw qx qy qz pan-x pan-y zoom }
     1978    } else {
     1979        set labels { phi theta psi pan-x pan-y zoom }
     1980    }
    18971981    set row 0
    18981982    foreach tag $labels {
     
    19802064    set _width $w
    19812065    set _height $h
     2066    $_arcball resize $w $h
    19822067    if { !$_resizePending } {
    19832068        $_dispatcher event -idle !resize
     
    20182103                    set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    20192104                    SendCmd "camera angle $xyz"
     2105                    if {$_useArcball} {
     2106                        $_arcball euler [list [expr {-[lindex $xyz 2]}] [expr {-[lindex $xyz 1]}] [expr {-[lindex $xyz 0]}]]
     2107                        set q [$_arcball quaternion]
     2108                        foreach { _view(qw) _view(qx) _view(qy) _view(qz) } $q break
     2109                        set _settings($this-qw) $_view(qw)
     2110                        set _settings($this-qx) $_view(qx)
     2111                        set _settings($this-qy) $_view(qy)
     2112                        set _settings($this-qz) $_view(qz)
     2113                    }
     2114                }
     2115                "qx" - "qy" - "qz" - "qw" {
     2116                    set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     2117                    $_arcball quaternion $q
     2118                    SendCmd "camera orient $q"
    20202119                }
    20212120                "zoom" {
  • trunk/packages/vizservers/configure

    r3335 r3362  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for vizservers 0.1.
     3# Generated by GNU Autoconf 2.63 for vizservers 0.1.
    44#
    55# Report bugs to <rappture@nanohub.org>.
    66#
    7 #
    8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    9 #
    10 #
     7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    119# This configure script is free software; the Free Software Foundation
    1210# gives unlimited permission to copy, distribute and modify it.
    13 ## -------------------- ##
    14 ## M4sh Initialization. ##
    15 ## -------------------- ##
     11## --------------------- ##
     12## M4sh Initialization.  ##
     13## --------------------- ##
    1614
    1715# Be more Bourne compatible
    1816DUALCASE=1; export DUALCASE # for MKS sh
    19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    2018  emulate sh
    2119  NULLCMD=:
     
    2523  setopt NO_GLOB_SUBST
    2624else
    27   case `(set -o) 2>/dev/null` in #(
    28   *posix*) :
    29     set -o posix ;; #(
    30   *) :
    31      ;;
    32 esac
    33 fi
    34 
     25  case `(set -o) 2>/dev/null` in
     26  *posix*) set -o posix ;;
     27esac
     28
     29fi
     30
     31
     32
     33
     34# PATH needs CR
     35# Avoid depending upon Character Ranges.
     36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     39as_cr_digits='0123456789'
     40as_cr_alnum=$as_cr_Letters$as_cr_digits
    3541
    3642as_nl='
     
    4147as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    4248as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    43 # Prefer a ksh shell builtin over an external printf program on Solaris,
    44 # but without wasting forks for bash or zsh.
    45 if test -z "$BASH_VERSION$ZSH_VERSION" \
    46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
    47   as_echo='print -r --'
    48   as_echo_n='print -rn --'
    49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    5050  as_echo='printf %s\n'
    5151  as_echo_n='printf %s'
     
    5858    as_echo_n_body='eval
    5959      arg=$1;
    60       case $arg in #(
     60      case $arg in
    6161      *"$as_nl"*)
    6262        expr "X$arg" : "X\\(.*\\)$as_nl";
     
    8181fi
    8282
     83# Support unset when possible.
     84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     85  as_unset=unset
     86else
     87  as_unset=false
     88fi
     89
    8390
    8491# IFS
     
    9097
    9198# Find who we are.  Look in the path if we contain no directory separator.
    92 as_myself=
    93 case $0 in #((
     99case $0 in
    94100  *[\\/]* ) as_myself=$0 ;;
    95101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    98104  IFS=$as_save_IFS
    99105  test -z "$as_dir" && as_dir=.
    100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    101   done
     106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     107done
    102108IFS=$as_save_IFS
    103109
     
    111117if test ! -f "$as_myself"; then
    112118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    116 # Unset variables that we do not need and which cause bugs (e.g. in
    117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    118 # suppresses any "Segmentation fault" message there.  '((' could
    119 # trigger a bug in pdksh 5.2.14.
    120 for as_var in BASH_ENV ENV MAIL MAILPATH
    121 do eval test x\${$as_var+set} = xset \
    122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     119  { (exit 1); exit 1; }
     120fi
     121
     122# Work around bugs in pre-3.0 UWIN ksh.
     123for as_var in ENV MAIL MAILPATH
     124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    123125done
    124126PS1='$ '
     
    132134export LANGUAGE
    133135
    134 # CDPATH.
    135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    136 
    137 # Use a proper internal environment variable to ensure we don't fall
    138   # into an infinite loop, continuously re-executing ourselves.
    139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    140     _as_can_reexec=no; export _as_can_reexec;
    141     # We cannot yet assume a decent shell, so we have to provide a
    142 # neutralization value for shells without unset; and this also
    143 # works around shells that cannot unset nonexistent variables.
    144 # Preserve -v and -x to the replacement shell.
    145 BASH_ENV=/dev/null
    146 ENV=/dev/null
    147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    148 case $- in # ((((
    149   *v*x* | *x*v* ) as_opts=-vx ;;
    150   *v* ) as_opts=-v ;;
    151   *x* ) as_opts=-x ;;
    152   * ) as_opts= ;;
    153 esac
    154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    155 # Admittedly, this is quite paranoid, since all the known shells bail
    156 # out after a failed `exec'.
    157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    158 as_fn_exit 255
    159   fi
    160   # We don't want this to propagate to other subprocesses.
    161           { _as_can_reexec=; unset _as_can_reexec;}
    162 if test "x$CONFIG_SHELL" = x; then
    163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    164   emulate sh
    165   NULLCMD=:
    166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    167   # is contrary to our usage.  Disable this feature.
    168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    169   setopt NO_GLOB_SUBST
    170 else
    171   case \`(set -o) 2>/dev/null\` in #(
    172   *posix*) :
    173     set -o posix ;; #(
    174   *) :
    175      ;;
    176 esac
    177 fi
    178 "
    179   as_required="as_fn_return () { (exit \$1); }
    180 as_fn_success () { as_fn_return 0; }
    181 as_fn_failure () { as_fn_return 1; }
    182 as_fn_ret_success () { return 0; }
    183 as_fn_ret_failure () { return 1; }
    184 
    185 exitcode=0
    186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    191 
    192 else
    193   exitcode=1; echo positional parameters were not saved.
    194 fi
    195 test x\$exitcode = x0 || exit 1
    196 test -x / || exit 1"
    197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    201 test \$(( 1 + 1 )) = 2 || exit 1"
    202   if (eval "$as_required") 2>/dev/null; then :
    203   as_have_required=yes
    204 else
    205   as_have_required=no
    206 fi
    207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    208 
    209 else
    210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    211 as_found=false
    212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    213 do
    214   IFS=$as_save_IFS
    215   test -z "$as_dir" && as_dir=.
    216   as_found=:
    217   case $as_dir in #(
    218          /*)
    219            for as_base in sh bash ksh sh5; do
    220              # Try only shells that exist, to save several forks.
    221              as_shell=$as_dir/$as_base
    222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   CONFIG_SHELL=$as_shell as_have_required=yes
    225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    226   break 2
    227 fi
    228 fi
    229            done;;
    230        esac
    231   as_found=false
    232 done
    233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    235   CONFIG_SHELL=$SHELL as_have_required=yes
    236 fi; }
    237 IFS=$as_save_IFS
    238 
    239 
    240       if test "x$CONFIG_SHELL" != x; then :
    241   export CONFIG_SHELL
    242              # We cannot yet assume a decent shell, so we have to provide a
    243 # neutralization value for shells without unset; and this also
    244 # works around shells that cannot unset nonexistent variables.
    245 # Preserve -v and -x to the replacement shell.
    246 BASH_ENV=/dev/null
    247 ENV=/dev/null
    248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    249 case $- in # ((((
    250   *v*x* | *x*v* ) as_opts=-vx ;;
    251   *v* ) as_opts=-v ;;
    252   *x* ) as_opts=-x ;;
    253   * ) as_opts= ;;
    254 esac
    255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    256 # Admittedly, this is quite paranoid, since all the known shells bail
    257 # out after a failed `exec'.
    258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    259 exit 255
    260 fi
    261 
    262     if test x$as_have_required = xno; then :
    263   $as_echo "$0: This script requires a shell more modern than all"
    264   $as_echo "$0: the shells that I found on your system."
    265   if test x${ZSH_VERSION+set} = xset ; then
    266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    268   else
    269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
    270 $0: rappture@nanohub.org about your system, including any
    271 $0: error possibly output before this message. Then install
    272 $0: a modern shell, or manually run the script under such a
    273 $0: shell if you do have one."
    274   fi
    275   exit 1
    276 fi
    277 fi
    278 fi
    279 SHELL=${CONFIG_SHELL-/bin/sh}
    280 export SHELL
    281 # Unset more variables known to interfere with behavior of common tools.
    282 CLICOLOR_FORCE= GREP_OPTIONS=
    283 unset CLICOLOR_FORCE GREP_OPTIONS
    284 
    285 ## --------------------- ##
    286 ## M4sh Shell Functions. ##
    287 ## --------------------- ##
    288 # as_fn_unset VAR
    289 # ---------------
    290 # Portably unset VAR.
    291 as_fn_unset ()
    292 {
    293   { eval $1=; unset $1;}
    294 }
    295 as_unset=as_fn_unset
    296 
    297 # as_fn_set_status STATUS
    298 # -----------------------
    299 # Set $? to STATUS, without forking.
    300 as_fn_set_status ()
    301 {
    302   return $1
    303 } # as_fn_set_status
    304 
    305 # as_fn_exit STATUS
    306 # -----------------
    307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    308 as_fn_exit ()
    309 {
    310   set +e
    311   as_fn_set_status $1
    312   exit $1
    313 } # as_fn_exit
    314 
    315 # as_fn_mkdir_p
    316 # -------------
    317 # Create "$as_dir" as a directory, including parents if necessary.
    318 as_fn_mkdir_p ()
    319 {
    320 
    321   case $as_dir in #(
    322   -*) as_dir=./$as_dir;;
    323   esac
    324   test -d "$as_dir" || eval $as_mkdir_p || {
    325     as_dirs=
    326     while :; do
    327       case $as_dir in #(
    328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    329       *) as_qdir=$as_dir;;
    330       esac
    331       as_dirs="'$as_qdir' $as_dirs"
    332       as_dir=`$as_dirname -- "$as_dir" ||
    333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    334          X"$as_dir" : 'X\(//\)[^/]' \| \
    335          X"$as_dir" : 'X\(//\)$' \| \
    336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    337 $as_echo X"$as_dir" |
    338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    339             s//\1/
    340             q
    341           }
    342           /^X\(\/\/\)[^/].*/{
    343             s//\1/
    344             q
    345           }
    346           /^X\(\/\/\)$/{
    347             s//\1/
    348             q
    349           }
    350           /^X\(\/\).*/{
    351             s//\1/
    352             q
    353           }
    354           s/.*/./; q'`
    355       test -d "$as_dir" && break
    356     done
    357     test -z "$as_dirs" || eval "mkdir $as_dirs"
    358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    359 
    360 
    361 } # as_fn_mkdir_p
    362 
    363 # as_fn_executable_p FILE
    364 # -----------------------
    365 # Test if FILE is an executable regular file.
    366 as_fn_executable_p ()
    367 {
    368   test -f "$1" && test -x "$1"
    369 } # as_fn_executable_p
    370 # as_fn_append VAR VALUE
    371 # ----------------------
    372 # Append the text in VALUE to the end of the definition contained in VAR. Take
    373 # advantage of any shell optimizations that allow amortized linear growth over
    374 # repeated appends, instead of the typical quadratic growth present in naive
    375 # implementations.
    376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    377   eval 'as_fn_append ()
    378   {
    379     eval $1+=\$2
    380   }'
    381 else
    382   as_fn_append ()
    383   {
    384     eval $1=\$$1\$2
    385   }
    386 fi # as_fn_append
    387 
    388 # as_fn_arith ARG...
    389 # ------------------
    390 # Perform arithmetic evaluation on the ARGs, and store the result in the
    391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    392 # must be portable across $(()) and expr.
    393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    394   eval 'as_fn_arith ()
    395   {
    396     as_val=$(( $* ))
    397   }'
    398 else
    399   as_fn_arith ()
    400   {
    401     as_val=`expr "$@" || test $? -eq 1`
    402   }
    403 fi # as_fn_arith
    404 
    405 
    406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    407 # ----------------------------------------
    408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    410 # script with STATUS, using 1 if that was 0.
    411 as_fn_error ()
    412 {
    413   as_status=$1; test $as_status -eq 0 && as_status=1
    414   if test "$4"; then
    415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    417   fi
    418   $as_echo "$as_me: error: $2" >&2
    419   as_fn_exit $as_status
    420 } # as_fn_error
    421 
     136# Required to use basename.
    422137if expr a : '\(a\)' >/dev/null 2>&1 &&
    423138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     
    433148fi
    434149
    435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    436   as_dirname=dirname
    437 else
    438   as_dirname=false
    439 fi
    440 
     150
     151# Name of the executable.
    441152as_me=`$as_basename -- "$0" ||
    442153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     
    458169          s/.*/./; q'`
    459170
    460 # Avoid depending upon Character Ranges.
    461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    464 as_cr_digits='0123456789'
    465 as_cr_alnum=$as_cr_Letters$as_cr_digits
    466 
    467 
    468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
     171# CDPATH.
     172$as_unset CDPATH
     173
     174
     175if test "x$CONFIG_SHELL" = x; then
     176  if (eval ":") 2>/dev/null; then
     177  as_have_required=yes
     178else
     179  as_have_required=no
     180fi
     181
     182  if test $as_have_required = yes &&     (eval ":
     183(as_func_return () {
     184  (exit \$1)
     185}
     186as_func_success () {
     187  as_func_return 0
     188}
     189as_func_failure () {
     190  as_func_return 1
     191}
     192as_func_ret_success () {
     193  return 0
     194}
     195as_func_ret_failure () {
     196  return 1
     197}
     198
     199exitcode=0
     200if as_func_success; then
     201  :
     202else
     203  exitcode=1
     204  echo as_func_success failed.
     205fi
     206
     207if as_func_failure; then
     208  exitcode=1
     209  echo as_func_failure succeeded.
     210fi
     211
     212if as_func_ret_success; then
     213  :
     214else
     215  exitcode=1
     216  echo as_func_ret_success failed.
     217fi
     218
     219if as_func_ret_failure; then
     220  exitcode=1
     221  echo as_func_ret_failure succeeded.
     222fi
     223
     224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
     225  :
     226else
     227  exitcode=1
     228  echo positional parameters were not saved.
     229fi
     230
     231test \$exitcode = 0) || { (exit 1); exit 1; }
     232
     233(
     234  as_lineno_1=\$LINENO
     235  as_lineno_2=\$LINENO
     236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
     237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
     238") 2> /dev/null; then
     239  :
     240else
     241  as_candidate_shells=
     242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     244do
     245  IFS=$as_save_IFS
     246  test -z "$as_dir" && as_dir=.
     247  case $as_dir in
     248         /*)
     249           for as_base in sh bash ksh sh5; do
     250             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
     251           done;;
     252       esac
     253done
     254IFS=$as_save_IFS
     255
     256
     257      for as_shell in $as_candidate_shells $SHELL; do
     258         # Try only shells that exist, to save several forks.
     259         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
     260                { ("$as_shell") 2> /dev/null <<\_ASEOF
     261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     262  emulate sh
     263  NULLCMD=:
     264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     265  # is contrary to our usage.  Disable this feature.
     266  alias -g '${1+"$@"}'='"$@"'
     267  setopt NO_GLOB_SUBST
     268else
     269  case `(set -o) 2>/dev/null` in
     270  *posix*) set -o posix ;;
     271esac
     272
     273fi
     274
     275
     276:
     277_ASEOF
     278}; then
     279  CONFIG_SHELL=$as_shell
     280               as_have_required=yes
     281               if { "$as_shell" 2> /dev/null <<\_ASEOF
     282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     283  emulate sh
     284  NULLCMD=:
     285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     286  # is contrary to our usage.  Disable this feature.
     287  alias -g '${1+"$@"}'='"$@"'
     288  setopt NO_GLOB_SUBST
     289else
     290  case `(set -o) 2>/dev/null` in
     291  *posix*) set -o posix ;;
     292esac
     293
     294fi
     295
     296
     297:
     298(as_func_return () {
     299  (exit $1)
     300}
     301as_func_success () {
     302  as_func_return 0
     303}
     304as_func_failure () {
     305  as_func_return 1
     306}
     307as_func_ret_success () {
     308  return 0
     309}
     310as_func_ret_failure () {
     311  return 1
     312}
     313
     314exitcode=0
     315if as_func_success; then
     316  :
     317else
     318  exitcode=1
     319  echo as_func_success failed.
     320fi
     321
     322if as_func_failure; then
     323  exitcode=1
     324  echo as_func_failure succeeded.
     325fi
     326
     327if as_func_ret_success; then
     328  :
     329else
     330  exitcode=1
     331  echo as_func_ret_success failed.
     332fi
     333
     334if as_func_ret_failure; then
     335  exitcode=1
     336  echo as_func_ret_failure succeeded.
     337fi
     338
     339if ( set x; as_func_ret_success y && test x = "$1" ); then
     340  :
     341else
     342  exitcode=1
     343  echo positional parameters were not saved.
     344fi
     345
     346test $exitcode = 0) || { (exit 1); exit 1; }
     347
     348(
     349  as_lineno_1=$LINENO
     350  as_lineno_2=$LINENO
     351  test "x$as_lineno_1" != "x$as_lineno_2" &&
     352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
     353
     354_ASEOF
     355}; then
     356  break
     357fi
     358
     359fi
     360
     361      done
     362
     363      if test "x$CONFIG_SHELL" != x; then
     364  for as_var in BASH_ENV ENV
     365        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     366        done
     367        export CONFIG_SHELL
     368        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
     369fi
     370
     371
     372    if test $as_have_required = no; then
     373  echo This script requires a shell more modern than all the
     374      echo shells that I found on your system.  Please install a
     375      echo modern shell, or manually run the script under such a
     376      echo shell if you do have one.
     377      { (exit 1); exit 1; }
     378fi
     379
     380
     381fi
     382
     383fi
     384
     385
     386
     387(eval "as_func_return () {
     388  (exit \$1)
     389}
     390as_func_success () {
     391  as_func_return 0
     392}
     393as_func_failure () {
     394  as_func_return 1
     395}
     396as_func_ret_success () {
     397  return 0
     398}
     399as_func_ret_failure () {
     400  return 1
     401}
     402
     403exitcode=0
     404if as_func_success; then
     405  :
     406else
     407  exitcode=1
     408  echo as_func_success failed.
     409fi
     410
     411if as_func_failure; then
     412  exitcode=1
     413  echo as_func_failure succeeded.
     414fi
     415
     416if as_func_ret_success; then
     417  :
     418else
     419  exitcode=1
     420  echo as_func_ret_success failed.
     421fi
     422
     423if as_func_ret_failure; then
     424  exitcode=1
     425  echo as_func_ret_failure succeeded.
     426fi
     427
     428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
     429  :
     430else
     431  exitcode=1
     432  echo positional parameters were not saved.
     433fi
     434
     435test \$exitcode = 0") || {
     436  echo No shell found that supports shell functions.
     437  echo Please tell bug-autoconf@gnu.org about your system,
     438  echo including any error possibly output before this message.
     439  echo This can help us improve future autoconf versions.
     440  echo Configuration will now proceed without shell functions.
     441}
     442
     443
     444
     445  as_lineno_1=$LINENO
     446  as_lineno_2=$LINENO
     447  test "x$as_lineno_1" != "x$as_lineno_2" &&
     448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
     449
     450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     451  # uniformly replaced by the line number.  The first 'sed' inserts a
     452  # line-number line after each line using $LINENO; the second 'sed'
     453  # does the real work.  The second script uses 'N' to pair each
     454  # line-number line with the line containing $LINENO, and appends
     455  # trailing '-' during substitution so that $LINENO is not a special
     456  # case at line end.
     457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
     459  # E. McMahon (1931-1989) for sed's syntax.  :-)
    473460  sed -n '
    474461    p
     
    487474    ' >$as_me.lineno &&
    488475  chmod +x "$as_me.lineno" ||
    489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    490 
    491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    492   # already done that, so ensure we don't try to do so again and fall
    493   # in an infinite loop.  This has already happened in practice.
    494   _as_can_reexec=no; export _as_can_reexec
     476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     477   { (exit 1); exit 1; }; }
     478
    495479  # Don't try to exec as it changes $[0], causing all sort of problems
    496480  # (the dirname of $[0] is not the place where we might find the
     
    501485}
    502486
     487
     488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     489  as_dirname=dirname
     490else
     491  as_dirname=false
     492fi
     493
    503494ECHO_C= ECHO_N= ECHO_T=
    504 case `echo -n x` in #(((((
     495case `echo -n x` in
    505496-n*)
    506   case `echo 'xy\c'` in
     497  case `echo 'x\c'` in
    507498  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
    508   xy)  ECHO_C='\c';;
    509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    510        ECHO_T=' ';;
     499  *)   ECHO_C='\c';;
    511500  esac;;
    512501*)
    513502  ECHO_N='-n';;
    514503esac
     504if expr a : '\(a\)' >/dev/null 2>&1 &&
     505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     506  as_expr=expr
     507else
     508  as_expr=false
     509fi
    515510
    516511rm -f conf$$ conf$$.exe conf$$.file
     
    527522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    528523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    529     # In both cases, we have to default to `cp -pR'.
     524    # In both cases, we have to default to `cp -p'.
    530525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    531       as_ln_s='cp -pR'
     526      as_ln_s='cp -p'
    532527  elif ln conf$$.file conf$$ 2>/dev/null; then
    533528    as_ln_s=ln
    534529  else
    535     as_ln_s='cp -pR'
     530    as_ln_s='cp -p'
    536531  fi
    537532else
    538   as_ln_s='cp -pR'
     533  as_ln_s='cp -p'
    539534fi
    540535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     
    542537
    543538if mkdir -p . 2>/dev/null; then
    544   as_mkdir_p='mkdir -p "$as_dir"'
     539  as_mkdir_p=:
    545540else
    546541  test -d ./-p && rmdir ./-p
     
    548543fi
    549544
    550 as_test_x='test -x'
    551 as_executable_p=as_fn_executable_p
     545if test -x / >/dev/null 2>&1; then
     546  as_test_x='test -x'
     547else
     548  if ls -dL / >/dev/null 2>&1; then
     549    as_ls_L_option=L
     550  else
     551    as_ls_L_option=
     552  fi
     553  as_test_x='
     554    eval sh -c '\''
     555      if test -d "$1"; then
     556        test -d "$1/.";
     557      else
     558        case $1 in
     559        -*)set "./$1";;
     560        esac;
     561        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
     562        ???[sx]*):;;*)false;;esac;fi
     563    '\'' sh
     564  '
     565fi
     566as_executable_p=$as_test_x
    552567
    553568# Sed expression to map a string onto a valid CPP name.
     
    558573
    559574
    560 test -n "$DJDIR" || exec 7<&0 </dev/null
    561 exec 6>&1
     575
     576exec 7<&0 </dev/null 6>&1
    562577
    563578# Name of the host.
    564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
     579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    565580# so uname gets run too.
    566581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     
    577592MFLAGS=
    578593MAKEFLAGS=
     594SHELL=${CONFIG_SHELL-/bin/sh}
    579595
    580596# Identity of this package.
     
    584600PACKAGE_STRING='vizservers 0.1'
    585601PACKAGE_BUGREPORT='rappture@nanohub.org'
    586 PACKAGE_URL=''
    587602
    588603# Factoring default headers for most tests.
     
    721736prefix
    722737exec_prefix
    723 PACKAGE_URL
    724738PACKAGE_BUGREPORT
    725739PACKAGE_STRING
     
    820834
    821835  case $ac_option in
    822   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    823   *=)   ac_optarg= ;;
    824   *)    ac_optarg=yes ;;
     836  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     837  *)    ac_optarg=yes ;;
    825838  esac
    826839
     
    867880    # Reject names that are not valid shell variable names.
    868881    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    869       as_fn_error $? "invalid feature name: $ac_useropt"
     882      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
     883   { (exit 1); exit 1; }; }
    870884    ac_useropt_orig=$ac_useropt
    871885    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    893907    # Reject names that are not valid shell variable names.
    894908    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    895       as_fn_error $? "invalid feature name: $ac_useropt"
     909      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
     910   { (exit 1); exit 1; }; }
    896911    ac_useropt_orig=$ac_useropt
    897912    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    10971112    # Reject names that are not valid shell variable names.
    10981113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1099       as_fn_error $? "invalid package name: $ac_useropt"
     1114      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
     1115   { (exit 1); exit 1; }; }
    11001116    ac_useropt_orig=$ac_useropt
    11011117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11131129    # Reject names that are not valid shell variable names.
    11141130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1115       as_fn_error $? "invalid package name: $ac_useropt"
     1131      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
     1132   { (exit 1); exit 1; }; }
    11161133    ac_useropt_orig=$ac_useropt
    11171134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11431160    x_libraries=$ac_optarg ;;
    11441161
    1145   -*) as_fn_error $? "unrecognized option: \`$ac_option'
    1146 Try \`$0 --help' for more information"
     1162  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
     1163Try \`$0 --help' for more information." >&2
     1164   { (exit 1); exit 1; }; }
    11471165    ;;
    11481166
     
    11501168    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    11511169    # Reject names that are not valid shell variable names.
    1152     case $ac_envvar in #(
    1153       '' | [0-9]* | *[!_$as_cr_alnum]* )
    1154       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    1155     esac
     1170    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
     1171      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     1172   { (exit 1); exit 1; }; }
    11561173    eval $ac_envvar=\$ac_optarg
    11571174    export $ac_envvar ;;
     
    11621179    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    11631180      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    1164     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
     1181    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    11651182    ;;
    11661183
     
    11701187if test -n "$ac_prev"; then
    11711188  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    1172   as_fn_error $? "missing argument to $ac_option"
     1189  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
     1190   { (exit 1); exit 1; }; }
    11731191fi
    11741192
     
    11761194  case $enable_option_checking in
    11771195    no) ;;
    1178     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1196    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
     1197   { (exit 1); exit 1; }; } ;;
    11791198    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
    11801199  esac
     
    11991218    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    12001219  esac
    1201   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
     1220  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     1221   { (exit 1); exit 1; }; }
    12021222done
    12031223
     
    12131233  if test "x$build_alias" = x; then
    12141234    cross_compiling=maybe
     1235    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     1236    If a cross compiler is detected then cross compile mode will be used." >&2
    12151237  elif test "x$build_alias" != "x$host_alias"; then
    12161238    cross_compiling=yes
     
    12271249ac_ls_di=`ls -di .` &&
    12281250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1229   as_fn_error $? "working directory cannot be determined"
     1251  { $as_echo "$as_me: error: working directory cannot be determined" >&2
     1252   { (exit 1); exit 1; }; }
    12301253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1231   as_fn_error $? "pwd does not report name of working directory"
     1254  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
     1255   { (exit 1); exit 1; }; }
    12321256
    12331257
     
    12681292if test ! -r "$srcdir/$ac_unique_file"; then
    12691293  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1270   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1294  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     1295   { (exit 1); exit 1; }; }
    12711296fi
    12721297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    12731298ac_abs_confdir=`(
    1274         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1299        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
     1300   { (exit 1); exit 1; }; }
    12751301        pwd)`
    12761302# When building in place, set srcdir=.
     
    13121338      --help=recursive    display the short help of all the included packages
    13131339  -V, --version           display version information and exit
    1314   -q, --quiet, --silent   do not print \`checking ...' messages
     1340  -q, --quiet, --silent   do not print \`checking...' messages
    13151341      --cache-file=FILE   cache test results in FILE [disabled]
    13161342  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    13951421              nonstandard directory <lib dir>
    13961422  LIBS        libraries to pass to the linker, e.g. -l<library>
    1397   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1423  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
    13981424              you have headers in a nonstandard directory <include dir>
    13991425  CPP         C preprocessor
     
    14701496  cat <<\_ACEOF
    14711497vizservers configure 0.1
    1472 generated by GNU Autoconf 2.69
    1473 
    1474 Copyright (C) 2012 Free Software Foundation, Inc.
     1498generated by GNU Autoconf 2.63
     1499
     1500Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     15012002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    14751502This configure script is free software; the Free Software Foundation
    14761503gives unlimited permission to copy, distribute and modify it.
     
    14781505  exit
    14791506fi
    1480 
    1481 ## ------------------------ ##
    1482 ## Autoconf initialization. ##
    1483 ## ------------------------ ##
    1484 
    1485 # ac_fn_c_try_compile LINENO
    1486 # --------------------------
    1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
    1488 ac_fn_c_try_compile ()
    1489 {
    1490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1491   rm -f conftest.$ac_objext
    1492   if { { ac_try="$ac_compile"
    1493 case "(($ac_try" in
    1494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1495   *) ac_try_echo=$ac_try;;
    1496 esac
    1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1498 $as_echo "$ac_try_echo"; } >&5
    1499   (eval "$ac_compile") 2>conftest.err
    1500   ac_status=$?
    1501   if test -s conftest.err; then
    1502     grep -v '^ *+' conftest.err >conftest.er1
    1503     cat conftest.er1 >&5
    1504     mv -f conftest.er1 conftest.err
    1505   fi
    1506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1507   test $ac_status = 0; } && {
    1508          test -z "$ac_c_werror_flag" ||
    1509          test ! -s conftest.err
    1510        } && test -s conftest.$ac_objext; then :
    1511   ac_retval=0
    1512 else
    1513   $as_echo "$as_me: failed program was:" >&5
    1514 sed 's/^/| /' conftest.$ac_ext >&5
    1515 
    1516         ac_retval=1
    1517 fi
    1518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1519   as_fn_set_status $ac_retval
    1520 
    1521 } # ac_fn_c_try_compile
    1522 
    1523 # ac_fn_c_try_cpp LINENO
    1524 # ----------------------
    1525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    1526 ac_fn_c_try_cpp ()
    1527 {
    1528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1529   if { { ac_try="$ac_cpp conftest.$ac_ext"
    1530 case "(($ac_try" in
    1531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1532   *) ac_try_echo=$ac_try;;
    1533 esac
    1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1535 $as_echo "$ac_try_echo"; } >&5
    1536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
    1537   ac_status=$?
    1538   if test -s conftest.err; then
    1539     grep -v '^ *+' conftest.err >conftest.er1
    1540     cat conftest.er1 >&5
    1541     mv -f conftest.er1 conftest.err
    1542   fi
    1543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1544   test $ac_status = 0; } > conftest.i && {
    1545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    1546          test ! -s conftest.err
    1547        }; then :
    1548   ac_retval=0
    1549 else
    1550   $as_echo "$as_me: failed program was:" >&5
    1551 sed 's/^/| /' conftest.$ac_ext >&5
    1552 
    1553     ac_retval=1
    1554 fi
    1555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1556   as_fn_set_status $ac_retval
    1557 
    1558 } # ac_fn_c_try_cpp
    1559 
    1560 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
    1561 # -------------------------------------------------------
    1562 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
    1563 # the include files in INCLUDES and setting the cache variable VAR
    1564 # accordingly.
    1565 ac_fn_c_check_header_mongrel ()
    1566 {
    1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1568   if eval \${$3+:} false; then :
    1569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1570 $as_echo_n "checking for $2... " >&6; }
    1571 if eval \${$3+:} false; then :
    1572   $as_echo_n "(cached) " >&6
    1573 fi
    1574 eval ac_res=\$$3
    1575                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1576 $as_echo "$ac_res" >&6; }
    1577 else
    1578   # Is the header compilable?
    1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
    1580 $as_echo_n "checking $2 usability... " >&6; }
    1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1582 /* end confdefs.h.  */
    1583 $4
    1584 #include <$2>
    1585 _ACEOF
    1586 if ac_fn_c_try_compile "$LINENO"; then :
    1587   ac_header_compiler=yes
    1588 else
    1589   ac_header_compiler=no
    1590 fi
    1591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
    1593 $as_echo "$ac_header_compiler" >&6; }
    1594 
    1595 # Is the header present?
    1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
    1597 $as_echo_n "checking $2 presence... " >&6; }
    1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1599 /* end confdefs.h.  */
    1600 #include <$2>
    1601 _ACEOF
    1602 if ac_fn_c_try_cpp "$LINENO"; then :
    1603   ac_header_preproc=yes
    1604 else
    1605   ac_header_preproc=no
    1606 fi
    1607 rm -f conftest.err conftest.i conftest.$ac_ext
    1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
    1609 $as_echo "$ac_header_preproc" >&6; }
    1610 
    1611 # So?  What about this header?
    1612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
    1613   yes:no: )
    1614     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
    1615 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    1616     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    1617 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    1618     ;;
    1619   no:yes:* )
    1620     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
    1621 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    1622     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
    1623 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    1624     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
    1625 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    1626     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
    1627 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    1628     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    1630 ( $as_echo "## ----------------------------------- ##
    1631 ## Report this to rappture@nanohub.org ##
    1632 ## ----------------------------------- ##"
    1633      ) | sed "s/^/$as_me: WARNING:     /" >&2
    1634     ;;
    1635 esac
    1636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1637 $as_echo_n "checking for $2... " >&6; }
    1638 if eval \${$3+:} false; then :
    1639   $as_echo_n "(cached) " >&6
    1640 else
    1641   eval "$3=\$ac_header_compiler"
    1642 fi
    1643 eval ac_res=\$$3
    1644                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1645 $as_echo "$ac_res" >&6; }
    1646 fi
    1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1648 
    1649 } # ac_fn_c_check_header_mongrel
    1650 
    1651 # ac_fn_c_try_run LINENO
    1652 # ----------------------
    1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    1654 # that executables *can* be run.
    1655 ac_fn_c_try_run ()
    1656 {
    1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1658   if { { ac_try="$ac_link"
    1659 case "(($ac_try" in
    1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1661   *) ac_try_echo=$ac_try;;
    1662 esac
    1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1664 $as_echo "$ac_try_echo"; } >&5
    1665   (eval "$ac_link") 2>&5
    1666   ac_status=$?
    1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1668   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
    1669   { { case "(($ac_try" in
    1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1671   *) ac_try_echo=$ac_try;;
    1672 esac
    1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1674 $as_echo "$ac_try_echo"; } >&5
    1675   (eval "$ac_try") 2>&5
    1676   ac_status=$?
    1677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1678   test $ac_status = 0; }; }; then :
    1679   ac_retval=0
    1680 else
    1681   $as_echo "$as_me: program exited with status $ac_status" >&5
    1682        $as_echo "$as_me: failed program was:" >&5
    1683 sed 's/^/| /' conftest.$ac_ext >&5
    1684 
    1685        ac_retval=$ac_status
    1686 fi
    1687   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1689   as_fn_set_status $ac_retval
    1690 
    1691 } # ac_fn_c_try_run
    1692 
    1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
    1694 # -------------------------------------------------------
    1695 # Tests whether HEADER exists and can be compiled using the include files in
    1696 # INCLUDES, setting the cache variable VAR accordingly.
    1697 ac_fn_c_check_header_compile ()
    1698 {
    1699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1701 $as_echo_n "checking for $2... " >&6; }
    1702 if eval \${$3+:} false; then :
    1703   $as_echo_n "(cached) " >&6
    1704 else
    1705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1706 /* end confdefs.h.  */
    1707 $4
    1708 #include <$2>
    1709 _ACEOF
    1710 if ac_fn_c_try_compile "$LINENO"; then :
    1711   eval "$3=yes"
    1712 else
    1713   eval "$3=no"
    1714 fi
    1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1716 fi
    1717 eval ac_res=\$$3
    1718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1719 $as_echo "$ac_res" >&6; }
    1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1721 
    1722 } # ac_fn_c_check_header_compile
    1723 
    1724 # ac_fn_c_try_link LINENO
    1725 # -----------------------
    1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
    1727 ac_fn_c_try_link ()
    1728 {
    1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1730   rm -f conftest.$ac_objext conftest$ac_exeext
    1731   if { { ac_try="$ac_link"
    1732 case "(($ac_try" in
    1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1734   *) ac_try_echo=$ac_try;;
    1735 esac
    1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1737 $as_echo "$ac_try_echo"; } >&5
    1738   (eval "$ac_link") 2>conftest.err
    1739   ac_status=$?
    1740   if test -s conftest.err; then
    1741     grep -v '^ *+' conftest.err >conftest.er1
    1742     cat conftest.er1 >&5
    1743     mv -f conftest.er1 conftest.err
    1744   fi
    1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1746   test $ac_status = 0; } && {
    1747          test -z "$ac_c_werror_flag" ||
    1748          test ! -s conftest.err
    1749        } && test -s conftest$ac_exeext && {
    1750          test "$cross_compiling" = yes ||
    1751          test -x conftest$ac_exeext
    1752        }; then :
    1753   ac_retval=0
    1754 else
    1755   $as_echo "$as_me: failed program was:" >&5
    1756 sed 's/^/| /' conftest.$ac_ext >&5
    1757 
    1758         ac_retval=1
    1759 fi
    1760   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
    1761   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
    1762   # interfere with the next link command; also delete a directory that is
    1763   # left behind by Apple's compiler.  We do this before executing the actions.
    1764   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1766   as_fn_set_status $ac_retval
    1767 
    1768 } # ac_fn_c_try_link
    1769 
    1770 # ac_fn_cxx_try_compile LINENO
    1771 # ----------------------------
    1772 # Try to compile conftest.$ac_ext, and return whether this succeeded.
    1773 ac_fn_cxx_try_compile ()
    1774 {
    1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1776   rm -f conftest.$ac_objext
    1777   if { { ac_try="$ac_compile"
    1778 case "(($ac_try" in
    1779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1780   *) ac_try_echo=$ac_try;;
    1781 esac
    1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1783 $as_echo "$ac_try_echo"; } >&5
    1784   (eval "$ac_compile") 2>conftest.err
    1785   ac_status=$?
    1786   if test -s conftest.err; then
    1787     grep -v '^ *+' conftest.err >conftest.er1
    1788     cat conftest.er1 >&5
    1789     mv -f conftest.er1 conftest.err
    1790   fi
    1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1792   test $ac_status = 0; } && {
    1793          test -z "$ac_cxx_werror_flag" ||
    1794          test ! -s conftest.err
    1795        } && test -s conftest.$ac_objext; then :
    1796   ac_retval=0
    1797 else
    1798   $as_echo "$as_me: failed program was:" >&5
    1799 sed 's/^/| /' conftest.$ac_ext >&5
    1800 
    1801         ac_retval=1
    1802 fi
    1803   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1804   as_fn_set_status $ac_retval
    1805 
    1806 } # ac_fn_cxx_try_compile
    1807 
    1808 # ac_fn_cxx_try_cpp LINENO
    1809 # ------------------------
    1810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    1811 ac_fn_cxx_try_cpp ()
    1812 {
    1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1814   if { { ac_try="$ac_cpp conftest.$ac_ext"
    1815 case "(($ac_try" in
    1816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1817   *) ac_try_echo=$ac_try;;
    1818 esac
    1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1820 $as_echo "$ac_try_echo"; } >&5
    1821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
    1822   ac_status=$?
    1823   if test -s conftest.err; then
    1824     grep -v '^ *+' conftest.err >conftest.er1
    1825     cat conftest.er1 >&5
    1826     mv -f conftest.er1 conftest.err
    1827   fi
    1828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1829   test $ac_status = 0; } > conftest.i && {
    1830          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    1831          test ! -s conftest.err
    1832        }; then :
    1833   ac_retval=0
    1834 else
    1835   $as_echo "$as_me: failed program was:" >&5
    1836 sed 's/^/| /' conftest.$ac_ext >&5
    1837 
    1838     ac_retval=1
    1839 fi
    1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1841   as_fn_set_status $ac_retval
    1842 
    1843 } # ac_fn_cxx_try_cpp
    1844 
    1845 # ac_fn_cxx_try_run LINENO
    1846 # ------------------------
    1847 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    1848 # that executables *can* be run.
    1849 ac_fn_cxx_try_run ()
    1850 {
    1851   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1852   if { { ac_try="$ac_link"
    1853 case "(($ac_try" in
    1854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1855   *) ac_try_echo=$ac_try;;
    1856 esac
    1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1858 $as_echo "$ac_try_echo"; } >&5
    1859   (eval "$ac_link") 2>&5
    1860   ac_status=$?
    1861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1862   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
    1863   { { case "(($ac_try" in
    1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1865   *) ac_try_echo=$ac_try;;
    1866 esac
    1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1868 $as_echo "$ac_try_echo"; } >&5
    1869   (eval "$ac_try") 2>&5
    1870   ac_status=$?
    1871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1872   test $ac_status = 0; }; }; then :
    1873   ac_retval=0
    1874 else
    1875   $as_echo "$as_me: program exited with status $ac_status" >&5
    1876        $as_echo "$as_me: failed program was:" >&5
    1877 sed 's/^/| /' conftest.$ac_ext >&5
    1878 
    1879        ac_retval=$ac_status
    1880 fi
    1881   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1882   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1883   as_fn_set_status $ac_retval
    1884 
    1885 } # ac_fn_cxx_try_run
    1886 
    1887 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
    1888 # ----------------------------------------------
    1889 # Tries to find the compile-time value of EXPR in a program that includes
    1890 # INCLUDES, setting VAR accordingly. Returns whether the value could be
    1891 # computed
    1892 ac_fn_cxx_compute_int ()
    1893 {
    1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1895   if test "$cross_compiling" = yes; then
    1896     # Depending upon the size, compute the lo and hi bounds.
    1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1898 /* end confdefs.h.  */
    1899 $4
    1900 int
    1901 main ()
    1902 {
    1903 static int test_array [1 - 2 * !(($2) >= 0)];
    1904 test_array [0] = 0;
    1905 return test_array [0];
    1906 
    1907   ;
    1908   return 0;
    1909 }
    1910 _ACEOF
    1911 if ac_fn_cxx_try_compile "$LINENO"; then :
    1912   ac_lo=0 ac_mid=0
    1913   while :; do
    1914     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1915 /* end confdefs.h.  */
    1916 $4
    1917 int
    1918 main ()
    1919 {
    1920 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    1921 test_array [0] = 0;
    1922 return test_array [0];
    1923 
    1924   ;
    1925   return 0;
    1926 }
    1927 _ACEOF
    1928 if ac_fn_cxx_try_compile "$LINENO"; then :
    1929   ac_hi=$ac_mid; break
    1930 else
    1931   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
    1932                         if test $ac_lo -le $ac_mid; then
    1933                           ac_lo= ac_hi=
    1934                           break
    1935                         fi
    1936                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
    1937 fi
    1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1939   done
    1940 else
    1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1942 /* end confdefs.h.  */
    1943 $4
    1944 int
    1945 main ()
    1946 {
    1947 static int test_array [1 - 2 * !(($2) < 0)];
    1948 test_array [0] = 0;
    1949 return test_array [0];
    1950 
    1951   ;
    1952   return 0;
    1953 }
    1954 _ACEOF
    1955 if ac_fn_cxx_try_compile "$LINENO"; then :
    1956   ac_hi=-1 ac_mid=-1
    1957   while :; do
    1958     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1959 /* end confdefs.h.  */
    1960 $4
    1961 int
    1962 main ()
    1963 {
    1964 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
    1965 test_array [0] = 0;
    1966 return test_array [0];
    1967 
    1968   ;
    1969   return 0;
    1970 }
    1971 _ACEOF
    1972 if ac_fn_cxx_try_compile "$LINENO"; then :
    1973   ac_lo=$ac_mid; break
    1974 else
    1975   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
    1976                         if test $ac_mid -le $ac_hi; then
    1977                           ac_lo= ac_hi=
    1978                           break
    1979                         fi
    1980                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
    1981 fi
    1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1983   done
    1984 else
    1985   ac_lo= ac_hi=
    1986 fi
    1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1988 fi
    1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1990 # Binary search between lo and hi bounds.
    1991 while test "x$ac_lo" != "x$ac_hi"; do
    1992   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
    1993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1994 /* end confdefs.h.  */
    1995 $4
    1996 int
    1997 main ()
    1998 {
    1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2000 test_array [0] = 0;
    2001 return test_array [0];
    2002 
    2003   ;
    2004   return 0;
    2005 }
    2006 _ACEOF
    2007 if ac_fn_cxx_try_compile "$LINENO"; then :
    2008   ac_hi=$ac_mid
    2009 else
    2010   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
    2011 fi
    2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2013 done
    2014 case $ac_lo in #((
    2015 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
    2016 '') ac_retval=1 ;;
    2017 esac
    2018   else
    2019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2020 /* end confdefs.h.  */
    2021 $4
    2022 static long int longval () { return $2; }
    2023 static unsigned long int ulongval () { return $2; }
    2024 #include <stdio.h>
    2025 #include <stdlib.h>
    2026 int
    2027 main ()
    2028 {
    2029 
    2030   FILE *f = fopen ("conftest.val", "w");
    2031   if (! f)
    2032     return 1;
    2033   if (($2) < 0)
    2034     {
    2035       long int i = longval ();
    2036       if (i != ($2))
    2037         return 1;
    2038       fprintf (f, "%ld", i);
    2039     }
    2040   else
    2041     {
    2042       unsigned long int i = ulongval ();
    2043       if (i != ($2))
    2044         return 1;
    2045       fprintf (f, "%lu", i);
    2046     }
    2047   /* Do not output a trailing newline, as this causes \r\n confusion
    2048      on some platforms.  */
    2049   return ferror (f) || fclose (f) != 0;
    2050 
    2051   ;
    2052   return 0;
    2053 }
    2054 _ACEOF
    2055 if ac_fn_cxx_try_run "$LINENO"; then :
    2056   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
    2057 else
    2058   ac_retval=1
    2059 fi
    2060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    2061   conftest.$ac_objext conftest.beam conftest.$ac_ext
    2062 rm -f conftest.val
    2063 
    2064   fi
    2065   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2066   as_fn_set_status $ac_retval
    2067 
    2068 } # ac_fn_cxx_compute_int
    2069 
    2070 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
    2071 # ---------------------------------------------------------
    2072 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
    2073 # the include files in INCLUDES and setting the cache variable VAR
    2074 # accordingly.
    2075 ac_fn_cxx_check_header_mongrel ()
    2076 {
    2077   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2078   if eval \${$3+:} false; then :
    2079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2080 $as_echo_n "checking for $2... " >&6; }
    2081 if eval \${$3+:} false; then :
    2082   $as_echo_n "(cached) " >&6
    2083 fi
    2084 eval ac_res=\$$3
    2085                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2086 $as_echo "$ac_res" >&6; }
    2087 else
    2088   # Is the header compilable?
    2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
    2090 $as_echo_n "checking $2 usability... " >&6; }
    2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2092 /* end confdefs.h.  */
    2093 $4
    2094 #include <$2>
    2095 _ACEOF
    2096 if ac_fn_cxx_try_compile "$LINENO"; then :
    2097   ac_header_compiler=yes
    2098 else
    2099   ac_header_compiler=no
    2100 fi
    2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
    2103 $as_echo "$ac_header_compiler" >&6; }
    2104 
    2105 # Is the header present?
    2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
    2107 $as_echo_n "checking $2 presence... " >&6; }
    2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2109 /* end confdefs.h.  */
    2110 #include <$2>
    2111 _ACEOF
    2112 if ac_fn_cxx_try_cpp "$LINENO"; then :
    2113   ac_header_preproc=yes
    2114 else
    2115   ac_header_preproc=no
    2116 fi
    2117 rm -f conftest.err conftest.i conftest.$ac_ext
    2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
    2119 $as_echo "$ac_header_preproc" >&6; }
    2120 
    2121 # So?  What about this header?
    2122 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
    2123   yes:no: )
    2124     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
    2125 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    2126     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    2127 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    2128     ;;
    2129   no:yes:* )
    2130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
    2131 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    2132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
    2133 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    2134     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
    2135 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    2136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
    2137 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    2138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    2140 ( $as_echo "## ----------------------------------- ##
    2141 ## Report this to rappture@nanohub.org ##
    2142 ## ----------------------------------- ##"
    2143      ) | sed "s/^/$as_me: WARNING:     /" >&2
    2144     ;;
    2145 esac
    2146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2147 $as_echo_n "checking for $2... " >&6; }
    2148 if eval \${$3+:} false; then :
    2149   $as_echo_n "(cached) " >&6
    2150 else
    2151   eval "$3=\$ac_header_compiler"
    2152 fi
    2153 eval ac_res=\$$3
    2154                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2155 $as_echo "$ac_res" >&6; }
    2156 fi
    2157   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2158 
    2159 } # ac_fn_cxx_check_header_mongrel
    2160 
    2161 # ac_fn_cxx_try_link LINENO
    2162 # -------------------------
    2163 # Try to link conftest.$ac_ext, and return whether this succeeded.
    2164 ac_fn_cxx_try_link ()
    2165 {
    2166   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2167   rm -f conftest.$ac_objext conftest$ac_exeext
    2168   if { { ac_try="$ac_link"
    2169 case "(($ac_try" in
    2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2171   *) ac_try_echo=$ac_try;;
    2172 esac
    2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2174 $as_echo "$ac_try_echo"; } >&5
    2175   (eval "$ac_link") 2>conftest.err
    2176   ac_status=$?
    2177   if test -s conftest.err; then
    2178     grep -v '^ *+' conftest.err >conftest.er1
    2179     cat conftest.er1 >&5
    2180     mv -f conftest.er1 conftest.err
    2181   fi
    2182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2183   test $ac_status = 0; } && {
    2184          test -z "$ac_cxx_werror_flag" ||
    2185          test ! -s conftest.err
    2186        } && test -s conftest$ac_exeext && {
    2187          test "$cross_compiling" = yes ||
    2188          test -x conftest$ac_exeext
    2189        }; then :
    2190   ac_retval=0
    2191 else
    2192   $as_echo "$as_me: failed program was:" >&5
    2193 sed 's/^/| /' conftest.$ac_ext >&5
    2194 
    2195         ac_retval=1
    2196 fi
    2197   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
    2198   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
    2199   # interfere with the next link command; also delete a directory that is
    2200   # left behind by Apple's compiler.  We do this before executing the actions.
    2201   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    2202   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2203   as_fn_set_status $ac_retval
    2204 
    2205 } # ac_fn_cxx_try_link
    2206 
    2207 # ac_fn_cxx_check_func LINENO FUNC VAR
    2208 # ------------------------------------
    2209 # Tests whether FUNC exists, setting the cache variable VAR accordingly
    2210 ac_fn_cxx_check_func ()
    2211 {
    2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2214 $as_echo_n "checking for $2... " >&6; }
    2215 if eval \${$3+:} false; then :
    2216   $as_echo_n "(cached) " >&6
    2217 else
    2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2219 /* end confdefs.h.  */
    2220 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
    2221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    2222 #define $2 innocuous_$2
    2223 
    2224 /* System header to define __stub macros and hopefully few prototypes,
    2225     which can conflict with char $2 (); below.
    2226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    2227     <limits.h> exists even on freestanding compilers.  */
    2228 
    2229 #ifdef __STDC__
    2230 # include <limits.h>
    2231 #else
    2232 # include <assert.h>
    2233 #endif
    2234 
    2235 #undef $2
    2236 
    2237 /* Override any GCC internal prototype to avoid an error.
    2238    Use char because int might match the return type of a GCC
    2239    builtin and then its argument prototype would still apply.  */
    2240 #ifdef __cplusplus
    2241 extern "C"
    2242 #endif
    2243 char $2 ();
    2244 /* The GNU C library defines this for functions which it implements
    2245     to always fail with ENOSYS.  Some functions are actually named
    2246     something starting with __ and the normal name is an alias.  */
    2247 #if defined __stub_$2 || defined __stub___$2
    2248 choke me
    2249 #endif
    2250 
    2251 int
    2252 main ()
    2253 {
    2254 return $2 ();
    2255   ;
    2256   return 0;
    2257 }
    2258 _ACEOF
    2259 if ac_fn_cxx_try_link "$LINENO"; then :
    2260   eval "$3=yes"
    2261 else
    2262   eval "$3=no"
    2263 fi
    2264 rm -f core conftest.err conftest.$ac_objext \
    2265     conftest$ac_exeext conftest.$ac_ext
    2266 fi
    2267 eval ac_res=\$$3
    2268                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2269 $as_echo "$ac_res" >&6; }
    2270   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2271 
    2272 } # ac_fn_cxx_check_func
    2273 
    2274 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
    2275 # ---------------------------------------------------------
    2276 # Tests whether HEADER exists and can be compiled using the include files in
    2277 # INCLUDES, setting the cache variable VAR accordingly.
    2278 ac_fn_cxx_check_header_compile ()
    2279 {
    2280   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2282 $as_echo_n "checking for $2... " >&6; }
    2283 if eval \${$3+:} false; then :
    2284   $as_echo_n "(cached) " >&6
    2285 else
    2286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2287 /* end confdefs.h.  */
    2288 $4
    2289 #include <$2>
    2290 _ACEOF
    2291 if ac_fn_cxx_try_compile "$LINENO"; then :
    2292   eval "$3=yes"
    2293 else
    2294   eval "$3=no"
    2295 fi
    2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2297 fi
    2298 eval ac_res=\$$3
    2299                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2300 $as_echo "$ac_res" >&6; }
    2301   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2302 
    2303 } # ac_fn_cxx_check_header_compile
    23041507cat >config.log <<_ACEOF
    23051508This file contains any messages produced by compilers while
     
    23071510
    23081511It was created by vizservers $as_me 0.1, which was
    2309 generated by GNU Autoconf 2.69.  Invocation command line was
     1512generated by GNU Autoconf 2.63.  Invocation command line was
    23101513
    23111514  $ $0 $@
     
    23431546  IFS=$as_save_IFS
    23441547  test -z "$as_dir" && as_dir=.
    2345     $as_echo "PATH: $as_dir"
    2346   done
     1548  $as_echo "PATH: $as_dir"
     1549done
    23471550IFS=$as_save_IFS
    23481551
     
    23811584    esac
    23821585    case $ac_pass in
    2383     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
     1586    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    23841587    2)
    2385       as_fn_append ac_configure_args1 " '$ac_arg'"
     1588      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
    23861589      if test $ac_must_keep_next = true; then
    23871590        ac_must_keep_next=false # Got value, back to normal.
     
    23991602        esac
    24001603      fi
    2401       as_fn_append ac_configure_args " '$ac_arg'"
     1604      ac_configure_args="$ac_configure_args '$ac_arg'"
    24021605      ;;
    24031606    esac
    24041607  done
    24051608done
    2406 { ac_configure_args0=; unset ac_configure_args0;}
    2407 { ac_configure_args1=; unset ac_configure_args1;}
     1609$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1610$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
    24081611
    24091612# When interrupted or exit'd, cleanup temporary files, and complete
     
    24171620    echo
    24181621
    2419     $as_echo "## ---------------- ##
     1622    cat <<\_ASBOX
     1623## ---------------- ##
    24201624## Cache variables. ##
    2421 ## ---------------- ##"
     1625## ---------------- ##
     1626_ASBOX
    24221627    echo
    24231628    # The following way of writing the cache mishandles newlines in values,
     
    24281633    *${as_nl}*)
    24291634      case $ac_var in #(
    2430       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     1635      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
    24311636$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
    24321637      esac
     
    24341639      _ | IFS | as_nl) ;; #(
    24351640      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
    2436       *) { eval $ac_var=; unset $ac_var;} ;;
     1641      *) $as_unset $ac_var ;;
    24371642      esac ;;
    24381643    esac
     
    24531658    echo
    24541659
    2455     $as_echo "## ----------------- ##
     1660    cat <<\_ASBOX
     1661## ----------------- ##
    24561662## Output variables. ##
    2457 ## ----------------- ##"
     1663## ----------------- ##
     1664_ASBOX
    24581665    echo
    24591666    for ac_var in $ac_subst_vars
     
    24681675
    24691676    if test -n "$ac_subst_files"; then
    2470       $as_echo "## ------------------- ##
     1677      cat <<\_ASBOX
     1678## ------------------- ##
    24711679## File substitutions. ##
    2472 ## ------------------- ##"
     1680## ------------------- ##
     1681_ASBOX
    24731682      echo
    24741683      for ac_var in $ac_subst_files
     
    24841693
    24851694    if test -s confdefs.h; then
    2486       $as_echo "## ----------- ##
     1695      cat <<\_ASBOX
     1696## ----------- ##
    24871697## confdefs.h. ##
    2488 ## ----------- ##"
     1698## ----------- ##
     1699_ASBOX
    24891700      echo
    24901701      cat confdefs.h
     
    25001711' 0
    25011712for ac_signal in 1 2 13 15; do
    2502   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
     1713  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    25031714done
    25041715ac_signal=0
     
    25071718rm -f -r conftest* confdefs.h
    25081719
    2509 $as_echo "/* confdefs.h */" > confdefs.h
    2510 
    25111720# Predefined preprocessor variables.
    25121721
     
    25151724_ACEOF
    25161725
     1726
    25171727cat >>confdefs.h <<_ACEOF
    25181728#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    25191729_ACEOF
    25201730
     1731
    25211732cat >>confdefs.h <<_ACEOF
    25221733#define PACKAGE_VERSION "$PACKAGE_VERSION"
    25231734_ACEOF
    25241735
     1736
    25251737cat >>confdefs.h <<_ACEOF
    25261738#define PACKAGE_STRING "$PACKAGE_STRING"
    25271739_ACEOF
    25281740
     1741
    25291742cat >>confdefs.h <<_ACEOF
    25301743#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    2531 _ACEOF
    2532 
    2533 cat >>confdefs.h <<_ACEOF
    2534 #define PACKAGE_URL "$PACKAGE_URL"
    25351744_ACEOF
    25361745
     
    25411750ac_site_file2=NONE
    25421751if test -n "$CONFIG_SITE"; then
    2543   # We do not want a PATH search for config.site.
    2544   case $CONFIG_SITE in #((
    2545     -*)  ac_site_file1=./$CONFIG_SITE;;
    2546     */*) ac_site_file1=$CONFIG_SITE;;
    2547     *)   ac_site_file1=./$CONFIG_SITE;;
    2548   esac
     1752  ac_site_file1=$CONFIG_SITE
    25491753elif test "x$prefix" != xNONE; then
    25501754  ac_site_file1=$prefix/share/config.site
     
    25571761do
    25581762  test "x$ac_site_file" = xNONE && continue
    2559   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    2560     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     1763  if test -r "$ac_site_file"; then
     1764    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    25611765$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    25621766    sed 's/^/| /' "$ac_site_file" >&5
    2563     . "$ac_site_file" \
    2564       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2566 as_fn_error $? "failed to load site script $ac_site_file
    2567 See \`config.log' for more details" "$LINENO" 5; }
     1767    . "$ac_site_file"
    25681768  fi
    25691769done
    25701770
    25711771if test -r "$cache_file"; then
    2572   # Some versions of bash will fail to source /dev/null (special files
    2573   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
    2574   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    2575     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
     1772  # Some versions of bash will fail to source /dev/null (special
     1773  # files actually), so we avoid doing that.
     1774  if test -f "$cache_file"; then
     1775    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
    25761776$as_echo "$as_me: loading cache $cache_file" >&6;}
    25771777    case $cache_file in
     
    25811781  fi
    25821782else
    2583   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
     1783  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
    25841784$as_echo "$as_me: creating cache $cache_file" >&6;}
    25851785  >$cache_file
     
    25961796  case $ac_old_set,$ac_new_set in
    25971797    set,)
    2598       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1798      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    25991799$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    26001800      ac_cache_corrupted=: ;;
    26011801    ,set)
    2602       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
     1802      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    26031803$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    26041804      ac_cache_corrupted=: ;;
     
    26101810        ac_new_val_w=`echo x $ac_new_val`
    26111811        if test "$ac_old_val_w" != "$ac_new_val_w"; then
    2612           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
     1812          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    26131813$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    26141814          ac_cache_corrupted=:
    26151815        else
    2616           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     1816          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
    26171817$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
    26181818          eval $ac_var=\$ac_old_val
    26191819        fi
    2620         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
     1820        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
    26211821$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
    2622         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
     1822        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
    26231823$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    26241824      fi;;
     
    26321832    case " $ac_configure_args " in
    26331833      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    2634       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
     1834      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    26351835    esac
    26361836  fi
    26371837done
    26381838if $ac_cache_corrupted; then
    2639   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     1839  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    26401840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2641   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     1841  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    26421842$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    2643   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
    2644 fi
    2645 ## -------------------- ##
    2646 ## Main body of script. ##
    2647 ## -------------------- ##
     1843  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1844$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1845   { (exit 1); exit 1; }; }
     1846fi
     1847
     1848
     1849
     1850
     1851
     1852
     1853
     1854
     1855
     1856
     1857
     1858
     1859
     1860
     1861
     1862
     1863
     1864
     1865
     1866
     1867
     1868
     1869
     1870
    26481871
    26491872ac_ext=c
     
    26711894done
    26721895if test -z "$ac_aux_dir"; then
    2673   as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
     1896  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cf \"$srcdir\"/cf" >&5
     1897$as_echo "$as_me: error: cannot find install-sh or install.sh in cf \"$srcdir\"/cf" >&2;}
     1898   { (exit 1); exit 1; }; }
    26741899fi
    26751900
     
    26881913
    26891914# Check whether --with-tcllib was given.
    2690 if test "${with_tcllib+set}" = set; then :
     1915if test "${with_tcllib+set}" = set; then
    26911916  withval=$with_tcllib; with_tcllib=$withval
    26921917else
     
    26971922
    26981923# Check whether --with-rappture was given.
    2699 if test "${with_rappture+set}" = set; then :
     1924if test "${with_rappture+set}" = set; then
    27001925  withval=$with_rappture; with_rappture=$withval
    27011926else
     
    27061931
    27071932# Check whether --with-vtk-includes was given.
    2708 if test "${with_vtk_includes+set}" = set; then :
     1933if test "${with_vtk_includes+set}" = set; then
    27091934  withval=$with_vtk_includes; with_vtk_includes=$withval
    27101935else
     
    27151940
    27161941# Check whether --with-vtk-libs was given.
    2717 if test "${with_vtk_libs+set}" = set; then :
     1942if test "${with_vtk_libs+set}" = set; then
    27181943  withval=$with_vtk_libs; with_vtk_libs=$withval
    27191944else
     
    27241949
    27251950# Check whether --with-vtk was given.
    2726 if test "${with_vtk+set}" = set; then :
     1951if test "${with_vtk+set}" = set; then
    27271952  withval=$with_vtk; with_vtk=$withval
    27281953else
     
    27391964  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    27401965set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     1966{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    27421967$as_echo_n "checking for $ac_word... " >&6; }
    2743 if ${ac_cv_prog_CC+:} false; then :
     1968if test "${ac_cv_prog_CC+set}" = set; then
    27441969  $as_echo_n "(cached) " >&6
    27451970else
     
    27521977  IFS=$as_save_IFS
    27531978  test -z "$as_dir" && as_dir=.
    2754     for ac_exec_ext in '' $ac_executable_extensions; do
    2755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1979  for ac_exec_ext in '' $ac_executable_extensions; do
     1980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    27561981    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    2757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     1982    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    27581983    break 2
    27591984  fi
    27601985done
    2761   done
     1986done
    27621987IFS=$as_save_IFS
    27631988
     
    27661991CC=$ac_cv_prog_CC
    27671992if test -n "$CC"; then
    2768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     1993  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    27691994$as_echo "$CC" >&6; }
    27701995else
    2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     1996  { $as_echo "$as_me:$LINENO: result: no" >&5
    27721997$as_echo "no" >&6; }
    27731998fi
     
    27792004  # Extract the first word of "gcc", so it can be a program name with args.
    27802005set dummy gcc; ac_word=$2
    2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2006{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    27822007$as_echo_n "checking for $ac_word... " >&6; }
    2783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
     2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    27842009  $as_echo_n "(cached) " >&6
    27852010else
     
    27922017  IFS=$as_save_IFS
    27932018  test -z "$as_dir" && as_dir=.
    2794     for ac_exec_ext in '' $ac_executable_extensions; do
    2795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2019  for ac_exec_ext in '' $ac_executable_extensions; do
     2020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    27962021    ac_cv_prog_ac_ct_CC="gcc"
    2797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2022    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    27982023    break 2
    27992024  fi
    28002025done
    2801   done
     2026done
    28022027IFS=$as_save_IFS
    28032028
     
    28062031ac_ct_CC=$ac_cv_prog_ac_ct_CC
    28072032if test -n "$ac_ct_CC"; then
    2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2033  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    28092034$as_echo "$ac_ct_CC" >&6; }
    28102035else
    2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2036  { $as_echo "$as_me:$LINENO: result: no" >&5
    28122037$as_echo "no" >&6; }
    28132038fi
     
    28182043    case $cross_compiling:$ac_tool_warned in
    28192044yes:)
    2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2045{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    28212046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    28222047ac_tool_warned=yes ;;
     
    28322057    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    28332058set dummy ${ac_tool_prefix}cc; ac_word=$2
    2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    28352060$as_echo_n "checking for $ac_word... " >&6; }
    2836 if ${ac_cv_prog_CC+:} false; then :
     2061if test "${ac_cv_prog_CC+set}" = set; then
    28372062  $as_echo_n "(cached) " >&6
    28382063else
     
    28452070  IFS=$as_save_IFS
    28462071  test -z "$as_dir" && as_dir=.
    2847     for ac_exec_ext in '' $ac_executable_extensions; do
    2848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2072  for ac_exec_ext in '' $ac_executable_extensions; do
     2073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    28492074    ac_cv_prog_CC="${ac_tool_prefix}cc"
    2850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2075    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    28512076    break 2
    28522077  fi
    28532078done
    2854   done
     2079done
    28552080IFS=$as_save_IFS
    28562081
     
    28592084CC=$ac_cv_prog_CC
    28602085if test -n "$CC"; then
    2861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2086  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    28622087$as_echo "$CC" >&6; }
    28632088else
    2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2089  { $as_echo "$as_me:$LINENO: result: no" >&5
    28652090$as_echo "no" >&6; }
    28662091fi
     
    28722097  # Extract the first word of "cc", so it can be a program name with args.
    28732098set dummy cc; ac_word=$2
    2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    28752100$as_echo_n "checking for $ac_word... " >&6; }
    2876 if ${ac_cv_prog_CC+:} false; then :
     2101if test "${ac_cv_prog_CC+set}" = set; then
    28772102  $as_echo_n "(cached) " >&6
    28782103else
     
    28862111  IFS=$as_save_IFS
    28872112  test -z "$as_dir" && as_dir=.
    2888     for ac_exec_ext in '' $ac_executable_extensions; do
    2889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2113  for ac_exec_ext in '' $ac_executable_extensions; do
     2114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    28902115    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    28912116       ac_prog_rejected=yes
     
    28932118     fi
    28942119    ac_cv_prog_CC="cc"
    2895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2120    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    28962121    break 2
    28972122  fi
    28982123done
    2899   done
     2124done
    29002125IFS=$as_save_IFS
    29012126
     
    29162141CC=$ac_cv_prog_CC
    29172142if test -n "$CC"; then
    2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2143  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    29192144$as_echo "$CC" >&6; }
    29202145else
    2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2146  { $as_echo "$as_me:$LINENO: result: no" >&5
    29222147$as_echo "no" >&6; }
    29232148fi
     
    29312156    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    29322157set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2158{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    29342159$as_echo_n "checking for $ac_word... " >&6; }
    2935 if ${ac_cv_prog_CC+:} false; then :
     2160if test "${ac_cv_prog_CC+set}" = set; then
    29362161  $as_echo_n "(cached) " >&6
    29372162else
     
    29442169  IFS=$as_save_IFS
    29452170  test -z "$as_dir" && as_dir=.
    2946     for ac_exec_ext in '' $ac_executable_extensions; do
    2947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2171  for ac_exec_ext in '' $ac_executable_extensions; do
     2172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    29482173    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2174    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    29502175    break 2
    29512176  fi
    29522177done
    2953   done
     2178done
    29542179IFS=$as_save_IFS
    29552180
     
    29582183CC=$ac_cv_prog_CC
    29592184if test -n "$CC"; then
    2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2185  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    29612186$as_echo "$CC" >&6; }
    29622187else
    2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2188  { $as_echo "$as_me:$LINENO: result: no" >&5
    29642189$as_echo "no" >&6; }
    29652190fi
     
    29752200  # Extract the first word of "$ac_prog", so it can be a program name with args.
    29762201set dummy $ac_prog; ac_word=$2
    2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    29782203$as_echo_n "checking for $ac_word... " >&6; }
    2979 if ${ac_cv_prog_ac_ct_CC+:} false; then :
     2204if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    29802205  $as_echo_n "(cached) " >&6
    29812206else
     
    29882213  IFS=$as_save_IFS
    29892214  test -z "$as_dir" && as_dir=.
    2990     for ac_exec_ext in '' $ac_executable_extensions; do
    2991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2215  for ac_exec_ext in '' $ac_executable_extensions; do
     2216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    29922217    ac_cv_prog_ac_ct_CC="$ac_prog"
    2993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2218    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    29942219    break 2
    29952220  fi
    29962221done
    2997   done
     2222done
    29982223IFS=$as_save_IFS
    29992224
     
    30022227ac_ct_CC=$ac_cv_prog_ac_ct_CC
    30032228if test -n "$ac_ct_CC"; then
    3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2229  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    30052230$as_echo "$ac_ct_CC" >&6; }
    30062231else
    3007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2232  { $as_echo "$as_me:$LINENO: result: no" >&5
    30082233$as_echo "no" >&6; }
    30092234fi
     
    30182243    case $cross_compiling:$ac_tool_warned in
    30192244yes:)
    3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2245{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    30212246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    30222247ac_tool_warned=yes ;;
     
    30292254
    30302255
    3031 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2256test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    30322257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3033 as_fn_error $? "no acceptable C compiler found in \$PATH
    3034 See \`config.log' for more details" "$LINENO" 5; }
     2258{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2259See \`config.log' for more details." >&5
     2260$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
     2261See \`config.log' for more details." >&2;}
     2262   { (exit 1); exit 1; }; }; }
    30352263
    30362264# Provide some information about the compiler.
    3037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     2265$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
    30382266set X $ac_compile
    30392267ac_compiler=$2
    3040 for ac_option in --version -v -V -qversion; do
    3041   { { ac_try="$ac_compiler $ac_option >&5"
     2268{ (ac_try="$ac_compiler --version >&5"
    30422269case "(($ac_try" in
    30432270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    30442271  *) ac_try_echo=$ac_try;;
    30452272esac
    3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3047 $as_echo "$ac_try_echo"; } >&5
    3048   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
     2273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2274$as_echo "$ac_try_echo") >&5
     2275  (eval "$ac_compiler --version >&5") 2>&5
    30492276  ac_status=$?
    3050   if test -s conftest.err; then
    3051     sed '10a\
    3052 ... rest of stderr output deleted ...
    3053          10q' conftest.err >conftest.er1
    3054     cat conftest.er1 >&5
    3055   fi
    3056   rm -f conftest.er1 conftest.err
    3057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3058   test $ac_status = 0; }
    3059 done
    3060 
    3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2278  (exit $ac_status); }
     2279{ (ac_try="$ac_compiler -v >&5"
     2280case "(($ac_try" in
     2281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2282  *) ac_try_echo=$ac_try;;
     2283esac
     2284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2285$as_echo "$ac_try_echo") >&5
     2286  (eval "$ac_compiler -v >&5") 2>&5
     2287  ac_status=$?
     2288  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2289  (exit $ac_status); }
     2290{ (ac_try="$ac_compiler -V >&5"
     2291case "(($ac_try" in
     2292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2293  *) ac_try_echo=$ac_try;;
     2294esac
     2295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2296$as_echo "$ac_try_echo") >&5
     2297  (eval "$ac_compiler -V >&5") 2>&5
     2298  ac_status=$?
     2299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2300  (exit $ac_status); }
     2301
     2302cat >conftest.$ac_ext <<_ACEOF
     2303/* confdefs.h.  */
     2304_ACEOF
     2305cat confdefs.h >>conftest.$ac_ext
     2306cat >>conftest.$ac_ext <<_ACEOF
    30622307/* end confdefs.h.  */
    30632308
     
    30752320# It will help us diagnose broken compilers, and finding out an intuition
    30762321# of exeext.
    3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
    3078 $as_echo_n "checking whether the C compiler works... " >&6; }
     2322{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     2323$as_echo_n "checking for C compiler default output file name... " >&6; }
    30792324ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    30802325
     
    30922337rm -f $ac_rmfiles
    30932338
    3094 if { { ac_try="$ac_link_default"
     2339if { (ac_try="$ac_link_default"
    30952340case "(($ac_try" in
    30962341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    30972342  *) ac_try_echo=$ac_try;;
    30982343esac
    3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3100 $as_echo "$ac_try_echo"; } >&5
     2344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2345$as_echo "$ac_try_echo") >&5
    31012346  (eval "$ac_link_default") 2>&5
    31022347  ac_status=$?
    3103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3104   test $ac_status = 0; }; then :
     2348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2349  (exit $ac_status); }; then
    31052350  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
    31062351# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     
    31192364        break;;
    31202365    *.* )
    3121         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2366        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
    31222367        then :; else
    31232368           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     
    31382383  ac_file=''
    31392384fi
    3140 if test -z "$ac_file"; then :
    3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    3142 $as_echo "no" >&6; }
    3143 $as_echo "$as_me: failed program was:" >&5
     2385
     2386{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
     2387$as_echo "$ac_file" >&6; }
     2388if test -z "$ac_file"; then
     2389  $as_echo "$as_me: failed program was:" >&5
    31442390sed 's/^/| /' conftest.$ac_ext >&5
    31452391
    3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2392{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    31472393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3148 as_fn_error 77 "C compiler cannot create executables
    3149 See \`config.log' for more details" "$LINENO" 5; }
    3150 else
    3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2394{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
     2395See \`config.log' for more details." >&5
     2396$as_echo "$as_me: error: C compiler cannot create executables
     2397See \`config.log' for more details." >&2;}
     2398   { (exit 77); exit 77; }; }; }
     2399fi
     2400
     2401ac_exeext=$ac_cv_exeext
     2402
     2403# Check that the compiler produces executables we can run.  If not, either
     2404# the compiler is broken, or we cross compile.
     2405{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2406$as_echo_n "checking whether the C compiler works... " >&6; }
     2407# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     2408# If not cross compiling, check that we can run a simple program.
     2409if test "$cross_compiling" != yes; then
     2410  if { ac_try='./$ac_file'
     2411  { (case "(($ac_try" in
     2412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2413  *) ac_try_echo=$ac_try;;
     2414esac
     2415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2416$as_echo "$ac_try_echo") >&5
     2417  (eval "$ac_try") 2>&5
     2418  ac_status=$?
     2419  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2420  (exit $ac_status); }; }; then
     2421    cross_compiling=no
     2422  else
     2423    if test "$cross_compiling" = maybe; then
     2424        cross_compiling=yes
     2425    else
     2426        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     2427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2428{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
     2429If you meant to cross compile, use \`--host'.
     2430See \`config.log' for more details." >&5
     2431$as_echo "$as_me: error: cannot run C compiled programs.
     2432If you meant to cross compile, use \`--host'.
     2433See \`config.log' for more details." >&2;}
     2434   { (exit 1); exit 1; }; }; }
     2435    fi
     2436  fi
     2437fi
     2438{ $as_echo "$as_me:$LINENO: result: yes" >&5
    31522439$as_echo "yes" >&6; }
    3153 fi
    3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
    3155 $as_echo_n "checking for C compiler default output file name... " >&6; }
    3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
    3157 $as_echo "$ac_file" >&6; }
    3158 ac_exeext=$ac_cv_exeext
    31592440
    31602441rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
    31612442ac_clean_files=$ac_clean_files_save
    3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     2443# Check that the compiler produces executables we can run.  If not, either
     2444# the compiler is broken, or we cross compile.
     2445{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2446$as_echo_n "checking whether we are cross compiling... " >&6; }
     2447{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2448$as_echo "$cross_compiling" >&6; }
     2449
     2450{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
    31632451$as_echo_n "checking for suffix of executables... " >&6; }
    3164 if { { ac_try="$ac_link"
     2452if { (ac_try="$ac_link"
    31652453case "(($ac_try" in
    31662454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    31672455  *) ac_try_echo=$ac_try;;
    31682456esac
    3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3170 $as_echo "$ac_try_echo"; } >&5
     2457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2458$as_echo "$ac_try_echo") >&5
    31712459  (eval "$ac_link") 2>&5
    31722460  ac_status=$?
    3173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3174   test $ac_status = 0; }; then :
     2461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2462  (exit $ac_status); }; then
    31752463  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    31762464# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    31872475done
    31882476else
    3189   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2477  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    31902478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3191 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
    3192 See \`config.log' for more details" "$LINENO" 5; }
    3193 fi
    3194 rm -f conftest conftest$ac_cv_exeext
    3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     2479{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     2480See \`config.log' for more details." >&5
     2481$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     2482See \`config.log' for more details." >&2;}
     2483   { (exit 1); exit 1; }; }; }
     2484fi
     2485
     2486rm -f conftest$ac_cv_exeext
     2487{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    31962488$as_echo "$ac_cv_exeext" >&6; }
    31972489
     
    31992491EXEEXT=$ac_cv_exeext
    32002492ac_exeext=$EXEEXT
    3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2493{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2494$as_echo_n "checking for suffix of object files... " >&6; }
     2495if test "${ac_cv_objext+set}" = set; then
     2496  $as_echo_n "(cached) " >&6
     2497else
     2498  cat >conftest.$ac_ext <<_ACEOF
     2499/* confdefs.h.  */
     2500_ACEOF
     2501cat confdefs.h >>conftest.$ac_ext
     2502cat >>conftest.$ac_ext <<_ACEOF
    32022503/* end confdefs.h.  */
    3203 #include <stdio.h>
     2504
    32042505int
    32052506main ()
    32062507{
    3207 FILE *f = fopen ("conftest.out", "w");
    3208  return ferror (f) || fclose (f) != 0;
    32092508
    32102509  ;
     
    32122511}
    32132512_ACEOF
    3214 ac_clean_files="$ac_clean_files conftest.out"
    3215 # Check that the compiler produces executables we can run.  If not, either
    3216 # the compiler is broken, or we cross compile.
    3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
    3218 $as_echo_n "checking whether we are cross compiling... " >&6; }
    3219 if test "$cross_compiling" != yes; then
    3220   { { ac_try="$ac_link"
     2513rm -f conftest.o conftest.obj
     2514if { (ac_try="$ac_compile"
    32212515case "(($ac_try" in
    32222516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    32232517  *) ac_try_echo=$ac_try;;
    32242518esac
    3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3226 $as_echo "$ac_try_echo"; } >&5
    3227   (eval "$ac_link") 2>&5
    3228   ac_status=$?
    3229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3230   test $ac_status = 0; }
    3231   if { ac_try='./conftest$ac_cv_exeext'
    3232   { { case "(($ac_try" in
    3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3234   *) ac_try_echo=$ac_try;;
    3235 esac
    3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3237 $as_echo "$ac_try_echo"; } >&5
    3238   (eval "$ac_try") 2>&5
    3239   ac_status=$?
    3240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3241   test $ac_status = 0; }; }; then
    3242     cross_compiling=no
    3243   else
    3244     if test "$cross_compiling" = maybe; then
    3245         cross_compiling=yes
    3246     else
    3247         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3249 as_fn_error $? "cannot run C compiled programs.
    3250 If you meant to cross compile, use \`--host'.
    3251 See \`config.log' for more details" "$LINENO" 5; }
    3252     fi
    3253   fi
    3254 fi
    3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
    3256 $as_echo "$cross_compiling" >&6; }
    3257 
    3258 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
    3259 ac_clean_files=$ac_clean_files_save
    3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
    3261 $as_echo_n "checking for suffix of object files... " >&6; }
    3262 if ${ac_cv_objext+:} false; then :
    3263   $as_echo_n "(cached) " >&6
    3264 else
    3265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3266 /* end confdefs.h.  */
    3267 
    3268 int
    3269 main ()
    3270 {
    3271 
    3272   ;
    3273   return 0;
    3274 }
    3275 _ACEOF
    3276 rm -f conftest.o conftest.obj
    3277 if { { ac_try="$ac_compile"
    3278 case "(($ac_try" in
    3279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3280   *) ac_try_echo=$ac_try;;
    3281 esac
    3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3283 $as_echo "$ac_try_echo"; } >&5
     2519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2520$as_echo "$ac_try_echo") >&5
    32842521  (eval "$ac_compile") 2>&5
    32852522  ac_status=$?
    3286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3287   test $ac_status = 0; }; then :
     2523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2524  (exit $ac_status); }; then
    32882525  for ac_file in conftest.o conftest.obj conftest.*; do
    32892526  test -f "$ac_file" || continue;
     
    32982535sed 's/^/| /' conftest.$ac_ext >&5
    32992536
    3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2537{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    33012538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3302 as_fn_error $? "cannot compute suffix of object files: cannot compile
    3303 See \`config.log' for more details" "$LINENO" 5; }
    3304 fi
     2539{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     2540See \`config.log' for more details." >&5
     2541$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
     2542See \`config.log' for more details." >&2;}
     2543   { (exit 1); exit 1; }; }; }
     2544fi
     2545
    33052546rm -f conftest.$ac_cv_objext conftest.$ac_ext
    33062547fi
    3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     2548{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    33082549$as_echo "$ac_cv_objext" >&6; }
    33092550OBJEXT=$ac_cv_objext
    33102551ac_objext=$OBJEXT
    3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     2552{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    33122553$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    3313 if ${ac_cv_c_compiler_gnu+:} false; then :
     2554if test "${ac_cv_c_compiler_gnu+set}" = set; then
    33142555  $as_echo_n "(cached) " >&6
    33152556else
    3316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2557  cat >conftest.$ac_ext <<_ACEOF
     2558/* confdefs.h.  */
     2559_ACEOF
     2560cat confdefs.h >>conftest.$ac_ext
     2561cat >>conftest.$ac_ext <<_ACEOF
    33172562/* end confdefs.h.  */
    33182563
     
    33282573}
    33292574_ACEOF
    3330 if ac_fn_c_try_compile "$LINENO"; then :
     2575rm -f conftest.$ac_objext
     2576if { (ac_try="$ac_compile"
     2577case "(($ac_try" in
     2578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2579  *) ac_try_echo=$ac_try;;
     2580esac
     2581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2582$as_echo "$ac_try_echo") >&5
     2583  (eval "$ac_compile") 2>conftest.er1
     2584  ac_status=$?
     2585  grep -v '^ *+' conftest.er1 >conftest.err
     2586  rm -f conftest.er1
     2587  cat conftest.err >&5
     2588  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2589  (exit $ac_status); } && {
     2590         test -z "$ac_c_werror_flag" ||
     2591         test ! -s conftest.err
     2592       } && test -s conftest.$ac_objext; then
    33312593  ac_compiler_gnu=yes
    33322594else
    3333   ac_compiler_gnu=no
    3334 fi
     2595  $as_echo "$as_me: failed program was:" >&5
     2596sed 's/^/| /' conftest.$ac_ext >&5
     2597
     2598        ac_compiler_gnu=no
     2599fi
     2600
    33352601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    33362602ac_cv_c_compiler_gnu=$ac_compiler_gnu
    33372603
    33382604fi
    3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     2605{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    33402606$as_echo "$ac_cv_c_compiler_gnu" >&6; }
    33412607if test $ac_compiler_gnu = yes; then
     
    33462612ac_test_CFLAGS=${CFLAGS+set}
    33472613ac_save_CFLAGS=$CFLAGS
    3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     2614{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    33492615$as_echo_n "checking whether $CC accepts -g... " >&6; }
    3350 if ${ac_cv_prog_cc_g+:} false; then :
     2616if test "${ac_cv_prog_cc_g+set}" = set; then
    33512617  $as_echo_n "(cached) " >&6
    33522618else
     
    33552621   ac_cv_prog_cc_g=no
    33562622   CFLAGS="-g"
    3357    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2623   cat >conftest.$ac_ext <<_ACEOF
     2624/* confdefs.h.  */
     2625_ACEOF
     2626cat confdefs.h >>conftest.$ac_ext
     2627cat >>conftest.$ac_ext <<_ACEOF
    33582628/* end confdefs.h.  */
    33592629
     
    33662636}
    33672637_ACEOF
    3368 if ac_fn_c_try_compile "$LINENO"; then :
     2638rm -f conftest.$ac_objext
     2639if { (ac_try="$ac_compile"
     2640case "(($ac_try" in
     2641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2642  *) ac_try_echo=$ac_try;;
     2643esac
     2644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2645$as_echo "$ac_try_echo") >&5
     2646  (eval "$ac_compile") 2>conftest.er1
     2647  ac_status=$?
     2648  grep -v '^ *+' conftest.er1 >conftest.err
     2649  rm -f conftest.er1
     2650  cat conftest.err >&5
     2651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2652  (exit $ac_status); } && {
     2653         test -z "$ac_c_werror_flag" ||
     2654         test ! -s conftest.err
     2655       } && test -s conftest.$ac_objext; then
    33692656  ac_cv_prog_cc_g=yes
    33702657else
    3371   CFLAGS=""
    3372       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2658  $as_echo "$as_me: failed program was:" >&5
     2659sed 's/^/| /' conftest.$ac_ext >&5
     2660
     2661        CFLAGS=""
     2662      cat >conftest.$ac_ext <<_ACEOF
     2663/* confdefs.h.  */
     2664_ACEOF
     2665cat confdefs.h >>conftest.$ac_ext
     2666cat >>conftest.$ac_ext <<_ACEOF
    33732667/* end confdefs.h.  */
    33742668
     
    33812675}
    33822676_ACEOF
    3383 if ac_fn_c_try_compile "$LINENO"; then :
    3384 
    3385 else
    3386   ac_c_werror_flag=$ac_save_c_werror_flag
     2677rm -f conftest.$ac_objext
     2678if { (ac_try="$ac_compile"
     2679case "(($ac_try" in
     2680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2681  *) ac_try_echo=$ac_try;;
     2682esac
     2683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2684$as_echo "$ac_try_echo") >&5
     2685  (eval "$ac_compile") 2>conftest.er1
     2686  ac_status=$?
     2687  grep -v '^ *+' conftest.er1 >conftest.err
     2688  rm -f conftest.er1
     2689  cat conftest.err >&5
     2690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2691  (exit $ac_status); } && {
     2692         test -z "$ac_c_werror_flag" ||
     2693         test ! -s conftest.err
     2694       } && test -s conftest.$ac_objext; then
     2695  :
     2696else
     2697  $as_echo "$as_me: failed program was:" >&5
     2698sed 's/^/| /' conftest.$ac_ext >&5
     2699
     2700        ac_c_werror_flag=$ac_save_c_werror_flag
    33872701         CFLAGS="-g"
    3388          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2702         cat >conftest.$ac_ext <<_ACEOF
     2703/* confdefs.h.  */
     2704_ACEOF
     2705cat confdefs.h >>conftest.$ac_ext
     2706cat >>conftest.$ac_ext <<_ACEOF
    33892707/* end confdefs.h.  */
    33902708
     
    33972715}
    33982716_ACEOF
    3399 if ac_fn_c_try_compile "$LINENO"; then :
     2717rm -f conftest.$ac_objext
     2718if { (ac_try="$ac_compile"
     2719case "(($ac_try" in
     2720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2721  *) ac_try_echo=$ac_try;;
     2722esac
     2723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2724$as_echo "$ac_try_echo") >&5
     2725  (eval "$ac_compile") 2>conftest.er1
     2726  ac_status=$?
     2727  grep -v '^ *+' conftest.er1 >conftest.err
     2728  rm -f conftest.er1
     2729  cat conftest.err >&5
     2730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2731  (exit $ac_status); } && {
     2732         test -z "$ac_c_werror_flag" ||
     2733         test ! -s conftest.err
     2734       } && test -s conftest.$ac_objext; then
    34002735  ac_cv_prog_cc_g=yes
    3401 fi
     2736else
     2737  $as_echo "$as_me: failed program was:" >&5
     2738sed 's/^/| /' conftest.$ac_ext >&5
     2739
     2740
     2741fi
     2742
    34022743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    34032744fi
     2745
    34042746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    34052747fi
     2748
    34062749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    34072750   ac_c_werror_flag=$ac_save_c_werror_flag
    34082751fi
    3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     2752{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    34102753$as_echo "$ac_cv_prog_cc_g" >&6; }
    34112754if test "$ac_test_CFLAGS" = set; then
     
    34242767  fi
    34252768fi
    3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     2769{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
    34272770$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    3428 if ${ac_cv_prog_cc_c89+:} false; then :
     2771if test "${ac_cv_prog_cc_c89+set}" = set; then
    34292772  $as_echo_n "(cached) " >&6
    34302773else
    34312774  ac_cv_prog_cc_c89=no
    34322775ac_save_CC=$CC
    3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2776cat >conftest.$ac_ext <<_ACEOF
     2777/* confdefs.h.  */
     2778_ACEOF
     2779cat confdefs.h >>conftest.$ac_ext
     2780cat >>conftest.$ac_ext <<_ACEOF
    34342781/* end confdefs.h.  */
    34352782#include <stdarg.h>
    34362783#include <stdio.h>
    3437 struct stat;
     2784#include <sys/types.h>
     2785#include <sys/stat.h>
    34382786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    34392787struct buf { int x; };
     
    34872835do
    34882836  CC="$ac_save_CC $ac_arg"
    3489   if ac_fn_c_try_compile "$LINENO"; then :
     2837  rm -f conftest.$ac_objext
     2838if { (ac_try="$ac_compile"
     2839case "(($ac_try" in
     2840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2841  *) ac_try_echo=$ac_try;;
     2842esac
     2843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2844$as_echo "$ac_try_echo") >&5
     2845  (eval "$ac_compile") 2>conftest.er1
     2846  ac_status=$?
     2847  grep -v '^ *+' conftest.er1 >conftest.err
     2848  rm -f conftest.er1
     2849  cat conftest.err >&5
     2850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2851  (exit $ac_status); } && {
     2852         test -z "$ac_c_werror_flag" ||
     2853         test ! -s conftest.err
     2854       } && test -s conftest.$ac_objext; then
    34902855  ac_cv_prog_cc_c89=$ac_arg
    3491 fi
     2856else
     2857  $as_echo "$as_me: failed program was:" >&5
     2858sed 's/^/| /' conftest.$ac_ext >&5
     2859
     2860
     2861fi
     2862
    34922863rm -f core conftest.err conftest.$ac_objext
    34932864  test "x$ac_cv_prog_cc_c89" != "xno" && break
     
    35002871case "x$ac_cv_prog_cc_c89" in
    35012872  x)
    3502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     2873    { $as_echo "$as_me:$LINENO: result: none needed" >&5
    35032874$as_echo "none needed" >&6; } ;;
    35042875  xno)
    3505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     2876    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
    35062877$as_echo "unsupported" >&6; } ;;
    35072878  *)
    35082879    CC="$CC $ac_cv_prog_cc_c89"
    3509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     2880    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
    35102881$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    35112882esac
    3512 if test "x$ac_cv_prog_cc_c89" != xno; then :
    3513 
    3514 fi
     2883
    35152884
    35162885ac_ext=c
     
    35262895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    35272896ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     2897{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    35292898$as_echo_n "checking how to run the C preprocessor... " >&6; }
    35302899# On Suns, sometimes $CPP names a directory.
     
    35332902fi
    35342903if test -z "$CPP"; then
    3535   if ${ac_cv_prog_CPP+:} false; then :
     2904  if test "${ac_cv_prog_CPP+set}" = set; then
    35362905  $as_echo_n "(cached) " >&6
    35372906else
     
    35482917  # On the NeXT, cc -E runs the code through the compiler's parser,
    35492918  # not just through cpp. "Syntax error" is here to catch this case.
    3550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2919  cat >conftest.$ac_ext <<_ACEOF
     2920/* confdefs.h.  */
     2921_ACEOF
     2922cat confdefs.h >>conftest.$ac_ext
     2923cat >>conftest.$ac_ext <<_ACEOF
    35512924/* end confdefs.h.  */
    35522925#ifdef __STDC__
     
    35572930                     Syntax error
    35582931_ACEOF
    3559 if ac_fn_c_try_cpp "$LINENO"; then :
    3560 
    3561 else
     2932if { (ac_try="$ac_cpp conftest.$ac_ext"
     2933case "(($ac_try" in
     2934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2935  *) ac_try_echo=$ac_try;;
     2936esac
     2937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2938$as_echo "$ac_try_echo") >&5
     2939  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     2940  ac_status=$?
     2941  grep -v '^ *+' conftest.er1 >conftest.err
     2942  rm -f conftest.er1
     2943  cat conftest.err >&5
     2944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2945  (exit $ac_status); } >/dev/null && {
     2946         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     2947         test ! -s conftest.err
     2948       }; then
     2949  :
     2950else
     2951  $as_echo "$as_me: failed program was:" >&5
     2952sed 's/^/| /' conftest.$ac_ext >&5
     2953
    35622954  # Broken: fails on valid input.
    35632955continue
    35642956fi
    3565 rm -f conftest.err conftest.i conftest.$ac_ext
     2957
     2958rm -f conftest.err conftest.$ac_ext
    35662959
    35672960  # OK, works on sane cases.  Now check whether nonexistent headers
    35682961  # can be detected and how.
    3569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2962  cat >conftest.$ac_ext <<_ACEOF
     2963/* confdefs.h.  */
     2964_ACEOF
     2965cat confdefs.h >>conftest.$ac_ext
     2966cat >>conftest.$ac_ext <<_ACEOF
    35702967/* end confdefs.h.  */
    35712968#include <ac_nonexistent.h>
    35722969_ACEOF
    3573 if ac_fn_c_try_cpp "$LINENO"; then :
     2970if { (ac_try="$ac_cpp conftest.$ac_ext"
     2971case "(($ac_try" in
     2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2973  *) ac_try_echo=$ac_try;;
     2974esac
     2975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2976$as_echo "$ac_try_echo") >&5
     2977  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     2978  ac_status=$?
     2979  grep -v '^ *+' conftest.er1 >conftest.err
     2980  rm -f conftest.er1
     2981  cat conftest.err >&5
     2982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2983  (exit $ac_status); } >/dev/null && {
     2984         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     2985         test ! -s conftest.err
     2986       }; then
    35742987  # Broken: success on invalid input.
    35752988continue
    35762989else
     2990  $as_echo "$as_me: failed program was:" >&5
     2991sed 's/^/| /' conftest.$ac_ext >&5
     2992
    35772993  # Passes both tests.
    35782994ac_preproc_ok=:
    35792995break
    35802996fi
    3581 rm -f conftest.err conftest.i conftest.$ac_ext
     2997
     2998rm -f conftest.err conftest.$ac_ext
    35822999
    35833000done
    35843001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3585 rm -f conftest.i conftest.err conftest.$ac_ext
    3586 if $ac_preproc_ok; then :
     3002rm -f conftest.err conftest.$ac_ext
     3003if $ac_preproc_ok; then
    35873004  break
    35883005fi
     
    35963013  ac_cv_prog_CPP=$CPP
    35973014fi
    3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     3015{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
    35993016$as_echo "$CPP" >&6; }
    36003017ac_preproc_ok=false
     
    36073024  # On the NeXT, cc -E runs the code through the compiler's parser,
    36083025  # not just through cpp. "Syntax error" is here to catch this case.
    3609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3026  cat >conftest.$ac_ext <<_ACEOF
     3027/* confdefs.h.  */
     3028_ACEOF
     3029cat confdefs.h >>conftest.$ac_ext
     3030cat >>conftest.$ac_ext <<_ACEOF
    36103031/* end confdefs.h.  */
    36113032#ifdef __STDC__
     
    36163037                     Syntax error
    36173038_ACEOF
    3618 if ac_fn_c_try_cpp "$LINENO"; then :
    3619 
    3620 else
     3039if { (ac_try="$ac_cpp conftest.$ac_ext"
     3040case "(($ac_try" in
     3041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3042  *) ac_try_echo=$ac_try;;
     3043esac
     3044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3045$as_echo "$ac_try_echo") >&5
     3046  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     3047  ac_status=$?
     3048  grep -v '^ *+' conftest.er1 >conftest.err
     3049  rm -f conftest.er1
     3050  cat conftest.err >&5
     3051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3052  (exit $ac_status); } >/dev/null && {
     3053         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3054         test ! -s conftest.err
     3055       }; then
     3056  :
     3057else
     3058  $as_echo "$as_me: failed program was:" >&5
     3059sed 's/^/| /' conftest.$ac_ext >&5
     3060
    36213061  # Broken: fails on valid input.
    36223062continue
    36233063fi
    3624 rm -f conftest.err conftest.i conftest.$ac_ext
     3064
     3065rm -f conftest.err conftest.$ac_ext
    36253066
    36263067  # OK, works on sane cases.  Now check whether nonexistent headers
    36273068  # can be detected and how.
    3628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3069  cat >conftest.$ac_ext <<_ACEOF
     3070/* confdefs.h.  */
     3071_ACEOF
     3072cat confdefs.h >>conftest.$ac_ext
     3073cat >>conftest.$ac_ext <<_ACEOF
    36293074/* end confdefs.h.  */
    36303075#include <ac_nonexistent.h>
    36313076_ACEOF
    3632 if ac_fn_c_try_cpp "$LINENO"; then :
     3077if { (ac_try="$ac_cpp conftest.$ac_ext"
     3078case "(($ac_try" in
     3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3080  *) ac_try_echo=$ac_try;;
     3081esac
     3082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3083$as_echo "$ac_try_echo") >&5
     3084  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     3085  ac_status=$?
     3086  grep -v '^ *+' conftest.er1 >conftest.err
     3087  rm -f conftest.er1
     3088  cat conftest.err >&5
     3089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3090  (exit $ac_status); } >/dev/null && {
     3091         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3092         test ! -s conftest.err
     3093       }; then
    36333094  # Broken: success on invalid input.
    36343095continue
    36353096else
     3097  $as_echo "$as_me: failed program was:" >&5
     3098sed 's/^/| /' conftest.$ac_ext >&5
     3099
    36363100  # Passes both tests.
    36373101ac_preproc_ok=:
    36383102break
    36393103fi
    3640 rm -f conftest.err conftest.i conftest.$ac_ext
     3104
     3105rm -f conftest.err conftest.$ac_ext
    36413106
    36423107done
    36433108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3644 rm -f conftest.i conftest.err conftest.$ac_ext
    3645 if $ac_preproc_ok; then :
    3646 
    3647 else
    3648   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3109rm -f conftest.err conftest.$ac_ext
     3110if $ac_preproc_ok; then
     3111  :
     3112else
     3113  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    36493114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3650 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    3651 See \`config.log' for more details" "$LINENO" 5; }
     3115{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3116See \`config.log' for more details." >&5
     3117$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3118See \`config.log' for more details." >&2;}
     3119   { (exit 1); exit 1; }; }; }
    36523120fi
    36533121
     
    36593127
    36603128
    3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     3129{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
    36623130$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    3663 if ${ac_cv_path_GREP+:} false; then :
     3131if test "${ac_cv_path_GREP+set}" = set; then
    36643132  $as_echo_n "(cached) " >&6
    36653133else
     
    36723140  IFS=$as_save_IFS
    36733141  test -z "$as_dir" && as_dir=.
    3674     for ac_prog in grep ggrep; do
     3142  for ac_prog in grep ggrep; do
    36753143    for ac_exec_ext in '' $ac_executable_extensions; do
    36763144      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    3677       as_fn_executable_p "$ac_path_GREP" || continue
     3145      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
    36783146# Check for GNU ac_path_GREP and select it if it is found.
    36793147  # Check for GNU $ac_path_GREP
     
    36923160    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    36933161    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    3694     as_fn_arith $ac_count + 1 && ac_count=$as_val
     3162    ac_count=`expr $ac_count + 1`
    36953163    if test $ac_count -gt ${ac_path_GREP_max-0}; then
    36963164      # Best one so far, save it but keep looking for a better one
     
    37073175    done
    37083176  done
    3709   done
     3177done
    37103178IFS=$as_save_IFS
    37113179  if test -z "$ac_cv_path_GREP"; then
    3712     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     3180    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     3181$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     3182   { (exit 1); exit 1; }; }
    37133183  fi
    37143184else
     
    37173187
    37183188fi
    3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     3189{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
    37203190$as_echo "$ac_cv_path_GREP" >&6; }
    37213191 GREP="$ac_cv_path_GREP"
    37223192
    37233193
    3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     3194{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
    37253195$as_echo_n "checking for egrep... " >&6; }
    3726 if ${ac_cv_path_EGREP+:} false; then :
     3196if test "${ac_cv_path_EGREP+set}" = set; then
    37273197  $as_echo_n "(cached) " >&6
    37283198else
     
    37383208  IFS=$as_save_IFS
    37393209  test -z "$as_dir" && as_dir=.
    3740     for ac_prog in egrep; do
     3210  for ac_prog in egrep; do
    37413211    for ac_exec_ext in '' $ac_executable_extensions; do
    37423212      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    3743       as_fn_executable_p "$ac_path_EGREP" || continue
     3213      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
    37443214# Check for GNU ac_path_EGREP and select it if it is found.
    37453215  # Check for GNU $ac_path_EGREP
     
    37583228    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    37593229    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    3760     as_fn_arith $ac_count + 1 && ac_count=$as_val
     3230    ac_count=`expr $ac_count + 1`
    37613231    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
    37623232      # Best one so far, save it but keep looking for a better one
     
    37733243    done
    37743244  done
    3775   done
     3245done
    37763246IFS=$as_save_IFS
    37773247  if test -z "$ac_cv_path_EGREP"; then
    3778     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     3248    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     3249$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     3250   { (exit 1); exit 1; }; }
    37793251  fi
    37803252else
     
    37843256   fi
    37853257fi
    3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     3258{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
    37873259$as_echo "$ac_cv_path_EGREP" >&6; }
    37883260 EGREP="$ac_cv_path_EGREP"
    37893261
    37903262
    3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     3263{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    37923264$as_echo_n "checking for ANSI C header files... " >&6; }
    3793 if ${ac_cv_header_stdc+:} false; then :
     3265if test "${ac_cv_header_stdc+set}" = set; then
    37943266  $as_echo_n "(cached) " >&6
    37953267else
    3796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3268  cat >conftest.$ac_ext <<_ACEOF
     3269/* confdefs.h.  */
     3270_ACEOF
     3271cat confdefs.h >>conftest.$ac_ext
     3272cat >>conftest.$ac_ext <<_ACEOF
    37973273/* end confdefs.h.  */
    37983274#include <stdlib.h>
     
    38093285}
    38103286_ACEOF
    3811 if ac_fn_c_try_compile "$LINENO"; then :
     3287rm -f conftest.$ac_objext
     3288if { (ac_try="$ac_compile"
     3289case "(($ac_try" in
     3290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3291  *) ac_try_echo=$ac_try;;
     3292esac
     3293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3294$as_echo "$ac_try_echo") >&5
     3295  (eval "$ac_compile") 2>conftest.er1
     3296  ac_status=$?
     3297  grep -v '^ *+' conftest.er1 >conftest.err
     3298  rm -f conftest.er1
     3299  cat conftest.err >&5
     3300  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3301  (exit $ac_status); } && {
     3302         test -z "$ac_c_werror_flag" ||
     3303         test ! -s conftest.err
     3304       } && test -s conftest.$ac_objext; then
    38123305  ac_cv_header_stdc=yes
    38133306else
    3814   ac_cv_header_stdc=no
    3815 fi
     3307  $as_echo "$as_me: failed program was:" >&5
     3308sed 's/^/| /' conftest.$ac_ext >&5
     3309
     3310        ac_cv_header_stdc=no
     3311fi
     3312
    38163313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    38173314
    38183315if test $ac_cv_header_stdc = yes; then
    38193316  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3317  cat >conftest.$ac_ext <<_ACEOF
     3318/* confdefs.h.  */
     3319_ACEOF
     3320cat confdefs.h >>conftest.$ac_ext
     3321cat >>conftest.$ac_ext <<_ACEOF
    38213322/* end confdefs.h.  */
    38223323#include <string.h>
     
    38243325_ACEOF
    38253326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3826   $EGREP "memchr" >/dev/null 2>&1; then :
    3827 
     3327  $EGREP "memchr" >/dev/null 2>&1; then
     3328  :
    38283329else
    38293330  ac_cv_header_stdc=no
     
    38353336if test $ac_cv_header_stdc = yes; then
    38363337  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3338  cat >conftest.$ac_ext <<_ACEOF
     3339/* confdefs.h.  */
     3340_ACEOF
     3341cat confdefs.h >>conftest.$ac_ext
     3342cat >>conftest.$ac_ext <<_ACEOF
    38383343/* end confdefs.h.  */
    38393344#include <stdlib.h>
     
    38413346_ACEOF
    38423347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3843   $EGREP "free" >/dev/null 2>&1; then :
    3844 
     3348  $EGREP "free" >/dev/null 2>&1; then
     3349  :
    38453350else
    38463351  ac_cv_header_stdc=no
     
    38523357if test $ac_cv_header_stdc = yes; then
    38533358  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3854   if test "$cross_compiling" = yes; then :
     3359  if test "$cross_compiling" = yes; then
    38553360  :
    38563361else
    3857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3362  cat >conftest.$ac_ext <<_ACEOF
     3363/* confdefs.h.  */
     3364_ACEOF
     3365cat confdefs.h >>conftest.$ac_ext
     3366cat >>conftest.$ac_ext <<_ACEOF
    38583367/* end confdefs.h.  */
    38593368#include <ctype.h>
     
    38823391}
    38833392_ACEOF
    3884 if ac_fn_c_try_run "$LINENO"; then :
    3885 
    3886 else
    3887   ac_cv_header_stdc=no
    3888 fi
    3889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    3890   conftest.$ac_objext conftest.beam conftest.$ac_ext
    3891 fi
    3892 
    3893 fi
    3894 fi
    3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     3393rm -f conftest$ac_exeext
     3394if { (ac_try="$ac_link"
     3395case "(($ac_try" in
     3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3397  *) ac_try_echo=$ac_try;;
     3398esac
     3399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3400$as_echo "$ac_try_echo") >&5
     3401  (eval "$ac_link") 2>&5
     3402  ac_status=$?
     3403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3404  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3405  { (case "(($ac_try" in
     3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3407  *) ac_try_echo=$ac_try;;
     3408esac
     3409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3410$as_echo "$ac_try_echo") >&5
     3411  (eval "$ac_try") 2>&5
     3412  ac_status=$?
     3413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3414  (exit $ac_status); }; }; then
     3415  :
     3416else
     3417  $as_echo "$as_me: program exited with status $ac_status" >&5
     3418$as_echo "$as_me: failed program was:" >&5
     3419sed 's/^/| /' conftest.$ac_ext >&5
     3420
     3421( exit $ac_status )
     3422ac_cv_header_stdc=no
     3423fi
     3424rm -rf conftest.dSYM
     3425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3426fi
     3427
     3428
     3429fi
     3430fi
     3431{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    38963432$as_echo "$ac_cv_header_stdc" >&6; }
    38973433if test $ac_cv_header_stdc = yes; then
    38983434
    3899 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
     3435cat >>confdefs.h <<\_ACEOF
     3436#define STDC_HEADERS 1
     3437_ACEOF
    39003438
    39013439fi
    39023440
    39033441# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3442
     3443
     3444
     3445
     3446
     3447
     3448
     3449
     3450
    39043451for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    39053452                  inttypes.h stdint.h unistd.h
    3906 do :
    3907   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3908 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
    3909 "
    3910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     3453do
     3454as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3455{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     3456$as_echo_n "checking for $ac_header... " >&6; }
     3457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     3458  $as_echo_n "(cached) " >&6
     3459else
     3460  cat >conftest.$ac_ext <<_ACEOF
     3461/* confdefs.h.  */
     3462_ACEOF
     3463cat confdefs.h >>conftest.$ac_ext
     3464cat >>conftest.$ac_ext <<_ACEOF
     3465/* end confdefs.h.  */
     3466$ac_includes_default
     3467
     3468#include <$ac_header>
     3469_ACEOF
     3470rm -f conftest.$ac_objext
     3471if { (ac_try="$ac_compile"
     3472case "(($ac_try" in
     3473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3474  *) ac_try_echo=$ac_try;;
     3475esac
     3476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3477$as_echo "$ac_try_echo") >&5
     3478  (eval "$ac_compile") 2>conftest.er1
     3479  ac_status=$?
     3480  grep -v '^ *+' conftest.er1 >conftest.err
     3481  rm -f conftest.er1
     3482  cat conftest.err >&5
     3483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3484  (exit $ac_status); } && {
     3485         test -z "$ac_c_werror_flag" ||
     3486         test ! -s conftest.err
     3487       } && test -s conftest.$ac_objext; then
     3488  eval "$as_ac_Header=yes"
     3489else
     3490  $as_echo "$as_me: failed program was:" >&5
     3491sed 's/^/| /' conftest.$ac_ext >&5
     3492
     3493        eval "$as_ac_Header=no"
     3494fi
     3495
     3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3497fi
     3498ac_res=`eval 'as_val=${'$as_ac_Header'}
     3499                 $as_echo "$as_val"'`
     3500               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     3501$as_echo "$ac_res" >&6; }
     3502as_val=`eval 'as_val=${'$as_ac_Header'}
     3503                 $as_echo "$as_val"'`
     3504   if test "x$as_val" = x""yes; then
    39113505  cat >>confdefs.h <<_ACEOF
    39123506#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    39333527
    39343528# Check whether --with-python was given.
    3935 if test "${with_python+set}" = set; then :
     3529if test "${with_python+set}" = set; then
    39363530  withval=$with_python;
    39373531else
     
    39443538    # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
    39453539set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
    3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3540{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    39473541$as_echo_n "checking for $ac_word... " >&6; }
    3948 if ${ac_cv_path_PYTHON+:} false; then :
     3542if test "${ac_cv_path_PYTHON+set}" = set; then
    39493543  $as_echo_n "(cached) " >&6
    39503544else
     
    39593553  IFS=$as_save_IFS
    39603554  test -z "$as_dir" && as_dir=.
    3961     for ac_exec_ext in '' $ac_executable_extensions; do
    3962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3555  for ac_exec_ext in '' $ac_executable_extensions; do
     3556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    39633557    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    3964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3558    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    39653559    break 2
    39663560  fi
    39673561done
    3968   done
     3562done
    39693563IFS=$as_save_IFS
    39703564
     
    39743568PYTHON=$ac_cv_path_PYTHON
    39753569if test -n "$PYTHON"; then
    3976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
     3570  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
    39773571$as_echo "$PYTHON" >&6; }
    39783572else
    3979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3573  { $as_echo "$as_me:$LINENO: result: no" >&5
    39803574$as_echo "no" >&6; }
    39813575fi
     
    39853579    # Extract the first word of "python", so it can be a program name with args.
    39863580set dummy python; ac_word=$2
    3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3581{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    39883582$as_echo_n "checking for $ac_word... " >&6; }
    3989 if ${ac_cv_path_PYTHON+:} false; then :
     3583if test "${ac_cv_path_PYTHON+set}" = set; then
    39903584  $as_echo_n "(cached) " >&6
    39913585else
     
    40013595  IFS=$as_save_IFS
    40023596  test -z "$as_dir" && as_dir=.
    4003     for ac_exec_ext in '' $ac_executable_extensions; do
    4004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3597  for ac_exec_ext in '' $ac_executable_extensions; do
     3598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    40053599    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    4006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3600    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    40073601    break 2
    40083602  fi
    40093603done
    4010   done
     3604done
    40113605IFS=$as_save_IFS
    40123606
     
    40163610PYTHON=$ac_cv_path_PYTHON
    40173611if test -n "$PYTHON"; then
    4018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
     3612  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
    40193613$as_echo "$PYTHON" >&6; }
    40203614else
    4021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3615  { $as_echo "$as_me:$LINENO: result: no" >&5
    40223616$as_echo "no" >&6; }
    40233617fi
     
    40253619
    40263620  fi
    4027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
     3621  { $as_echo "$as_me:$LINENO: checking for Python version" >&5
    40283622$as_echo_n "checking for Python version... " >&6; }
    40293623  if test "x${PYTHON}" != "x"; then
    40303624    PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`
    40313625  fi
    4032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
     3626  { $as_echo "$as_me:$LINENO: result: $PYTHON_VERSION" >&5
    40333627$as_echo "$PYTHON_VERSION" >&6; }
    40343628fi
     
    40363630if test "x${PYTHON_VERSION}" != "x"; then
    40373631  PYTHON_INCLUDES=$incdir
    4038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5
     3632  { $as_echo "$as_me:$LINENO: checking for Python distutils" >&5
    40393633$as_echo_n "checking for Python distutils... " >&6; }
    40403634  PYTHON_DISTUTILS=""
     
    40443638    PYTHON_DISTUTILS="yes"
    40453639  fi
    4046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5
     3640  { $as_echo "$as_me:$LINENO: result: $PYTHON_DISTUTILS" >&5
    40473641$as_echo "$PYTHON_DISTUTILS" >&6; }
    40483642  if test "${PYTHON_DISTUTILS}" = "yes" ; then
     
    40513645    # Check for Python include path
    40523646    #
    4053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5
     3647    { $as_echo "$as_me:$LINENO: checking path to Python headers" >&5
    40543648$as_echo_n "checking path to Python headers... " >&6; }
    40553649    PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \
    40563650     print distutils.sysconfig.get_python_inc();"`
    4057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5
     3651    { $as_echo "$as_me:$LINENO: result: $PYTHON_INCDIR" >&5
    40583652$as_echo "$PYTHON_INCDIR" >&6; }
    40593653    #
     
    40683662    save_CPPFLAGS=$CPPFLAGS
    40693663    CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"
    4070     for ac_header in Python.h
    4071 do :
    4072   ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
    4073 if test "x$ac_cv_header_Python_h" = xyes; then :
     3664
     3665for ac_header in Python.h
     3666do
     3667as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     3669  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     3670$as_echo_n "checking for $ac_header... " >&6; }
     3671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     3672  $as_echo_n "(cached) " >&6
     3673fi
     3674ac_res=`eval 'as_val=${'$as_ac_Header'}
     3675                 $as_echo "$as_val"'`
     3676               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     3677$as_echo "$ac_res" >&6; }
     3678else
     3679  # Is the header compilable?
     3680{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     3681$as_echo_n "checking $ac_header usability... " >&6; }
     3682cat >conftest.$ac_ext <<_ACEOF
     3683/* confdefs.h.  */
     3684_ACEOF
     3685cat confdefs.h >>conftest.$ac_ext
     3686cat >>conftest.$ac_ext <<_ACEOF
     3687/* end confdefs.h.  */
     3688$ac_includes_default
     3689#include <$ac_header>
     3690_ACEOF
     3691rm -f conftest.$ac_objext
     3692if { (ac_try="$ac_compile"
     3693case "(($ac_try" in
     3694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3695  *) ac_try_echo=$ac_try;;
     3696esac
     3697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3698$as_echo "$ac_try_echo") >&5
     3699  (eval "$ac_compile") 2>conftest.er1
     3700  ac_status=$?
     3701  grep -v '^ *+' conftest.er1 >conftest.err
     3702  rm -f conftest.er1
     3703  cat conftest.err >&5
     3704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3705  (exit $ac_status); } && {
     3706         test -z "$ac_c_werror_flag" ||
     3707         test ! -s conftest.err
     3708       } && test -s conftest.$ac_objext; then
     3709  ac_header_compiler=yes
     3710else
     3711  $as_echo "$as_me: failed program was:" >&5
     3712sed 's/^/| /' conftest.$ac_ext >&5
     3713
     3714        ac_header_compiler=no
     3715fi
     3716
     3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3718{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3719$as_echo "$ac_header_compiler" >&6; }
     3720
     3721# Is the header present?
     3722{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     3723$as_echo_n "checking $ac_header presence... " >&6; }
     3724cat >conftest.$ac_ext <<_ACEOF
     3725/* confdefs.h.  */
     3726_ACEOF
     3727cat confdefs.h >>conftest.$ac_ext
     3728cat >>conftest.$ac_ext <<_ACEOF
     3729/* end confdefs.h.  */
     3730#include <$ac_header>
     3731_ACEOF
     3732if { (ac_try="$ac_cpp conftest.$ac_ext"
     3733case "(($ac_try" in
     3734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3735  *) ac_try_echo=$ac_try;;
     3736esac
     3737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3738$as_echo "$ac_try_echo") >&5
     3739  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     3740  ac_status=$?
     3741  grep -v '^ *+' conftest.er1 >conftest.err
     3742  rm -f conftest.er1
     3743  cat conftest.err >&5
     3744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3745  (exit $ac_status); } >/dev/null && {
     3746         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3747         test ! -s conftest.err
     3748       }; then
     3749  ac_header_preproc=yes
     3750else
     3751  $as_echo "$as_me: failed program was:" >&5
     3752sed 's/^/| /' conftest.$ac_ext >&5
     3753
     3754  ac_header_preproc=no
     3755fi
     3756
     3757rm -f conftest.err conftest.$ac_ext
     3758{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     3759$as_echo "$ac_header_preproc" >&6; }
     3760
     3761# So?  What about this header?
     3762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     3763  yes:no: )
     3764    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     3765$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     3766    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     3767$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     3768    ac_header_preproc=yes
     3769    ;;
     3770  no:yes:* )
     3771    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     3772$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     3773    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     3774$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     3775    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     3776$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     3777    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     3778$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     3779    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     3780$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     3781    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     3782$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     3783    ( cat <<\_ASBOX
     3784## ----------------------------------- ##
     3785## Report this to rappture@nanohub.org ##
     3786## ----------------------------------- ##
     3787_ASBOX
     3788     ) | sed "s/^/$as_me: WARNING:     /" >&2
     3789    ;;
     3790esac
     3791{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     3792$as_echo_n "checking for $ac_header... " >&6; }
     3793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     3794  $as_echo_n "(cached) " >&6
     3795else
     3796  eval "$as_ac_Header=\$ac_header_preproc"
     3797fi
     3798ac_res=`eval 'as_val=${'$as_ac_Header'}
     3799                 $as_echo "$as_val"'`
     3800               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     3801$as_echo "$ac_res" >&6; }
     3802
     3803fi
     3804as_val=`eval 'as_val=${'$as_ac_Header'}
     3805                 $as_echo "$as_val"'`
     3806   if test "x$as_val" = x""yes; then
    40743807  cat >>confdefs.h <<_ACEOF
    4075 #define HAVE_PYTHON_H 1
     3808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    40763809_ACEOF
    40773810 found=yes
     
    41173850  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    41183851set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    41203853$as_echo_n "checking for $ac_word... " >&6; }
    4121 if ${ac_cv_prog_RANLIB+:} false; then :
     3854if test "${ac_cv_prog_RANLIB+set}" = set; then
    41223855  $as_echo_n "(cached) " >&6
    41233856else
     
    41303863  IFS=$as_save_IFS
    41313864  test -z "$as_dir" && as_dir=.
    4132     for ac_exec_ext in '' $ac_executable_extensions; do
    4133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3865  for ac_exec_ext in '' $ac_executable_extensions; do
     3866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    41343867    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    4135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3868    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    41363869    break 2
    41373870  fi
    41383871done
    4139   done
     3872done
    41403873IFS=$as_save_IFS
    41413874
     
    41443877RANLIB=$ac_cv_prog_RANLIB
    41453878if test -n "$RANLIB"; then
    4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     3879  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
    41473880$as_echo "$RANLIB" >&6; }
    41483881else
    4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3882  { $as_echo "$as_me:$LINENO: result: no" >&5
    41503883$as_echo "no" >&6; }
    41513884fi
     
    41573890  # Extract the first word of "ranlib", so it can be a program name with args.
    41583891set dummy ranlib; ac_word=$2
    4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3892{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    41603893$as_echo_n "checking for $ac_word... " >&6; }
    4161 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
     3894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    41623895  $as_echo_n "(cached) " >&6
    41633896else
     
    41703903  IFS=$as_save_IFS
    41713904  test -z "$as_dir" && as_dir=.
    4172     for ac_exec_ext in '' $ac_executable_extensions; do
    4173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3905  for ac_exec_ext in '' $ac_executable_extensions; do
     3906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    41743907    ac_cv_prog_ac_ct_RANLIB="ranlib"
    4175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3908    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    41763909    break 2
    41773910  fi
    41783911done
    4179   done
     3912done
    41803913IFS=$as_save_IFS
    41813914
     
    41843917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    41853918if test -n "$ac_ct_RANLIB"; then
    4186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     3919  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    41873920$as_echo "$ac_ct_RANLIB" >&6; }
    41883921else
    4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3922  { $as_echo "$as_me:$LINENO: result: no" >&5
    41903923$as_echo "no" >&6; }
    41913924fi
     
    41963929    case $cross_compiling:$ac_tool_warned in
    41973930yes:)
    4198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3931{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    41993932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    42003933ac_tool_warned=yes ;;
     
    42103943    # Step 0.a: Enable 64 bit support?
    42113944
    4212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
     3945    { $as_echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
    42133946$as_echo_n "checking if 64bit support is requested... " >&6; }
    42143947    # Check whether --enable-64bit was given.
    4215 if test "${enable_64bit+set}" = set; then :
     3948if test "${enable_64bit+set}" = set; then
    42163949  enableval=$enable_64bit; do64bit=$enableval
    42173950else
     
    42193952fi
    42203953
    4221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
     3954    { $as_echo "$as_me:$LINENO: result: $do64bit" >&5
    42223955$as_echo "$do64bit" >&6; }
    42233956
    42243957    # Step 0.b: Enable Solaris 64 bit VIS support?
    42253958
    4226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
     3959    { $as_echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
    42273960$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
    42283961    # Check whether --enable-64bit-vis was given.
    4229 if test "${enable_64bit_vis+set}" = set; then :
     3962if test "${enable_64bit_vis+set}" = set; then
    42303963  enableval=$enable_64bit_vis; do64bitVIS=$enableval
    42313964else
     
    42333966fi
    42343967
    4235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
     3968    { $as_echo "$as_me:$LINENO: result: $do64bitVIS" >&5
    42363969$as_echo "$do64bitVIS" >&6; }
    42373970
     
    42453978
    42463979
    4247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
     3980    { $as_echo "$as_me:$LINENO: checking system version" >&5
    42483981$as_echo_n "checking system version... " >&6; }
    4249 if ${tcl_cv_sys_version+:} false; then :
     3982if test "${tcl_cv_sys_version+set}" = set; then
    42503983  $as_echo_n "(cached) " >&6
    42513984else
     
    42563989            tcl_cv_sys_version=`uname -s`-`uname -r`
    42573990            if test "$?" -ne 0 ; then
    4258                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
     3991                { $as_echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
    42593992$as_echo "$as_me: WARNING: can't find uname command" >&2;}
    42603993                tcl_cv_sys_version=unknown
     
    42734006
    42744007fi
    4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
     4008{ $as_echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
    42764009$as_echo "$tcl_cv_sys_version" >&6; }
    42774010    system=$tcl_cv_sys_version
     
    42814014    # Linux can use either -ldl or -ldld for dynamic loading.
    42824015
    4283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
     4016    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    42844017$as_echo_n "checking for dlopen in -ldl... " >&6; }
    4285 if ${ac_cv_lib_dl_dlopen+:} false; then :
     4018if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    42864019  $as_echo_n "(cached) " >&6
    42874020else
    42884021  ac_check_lib_save_LIBS=$LIBS
    42894022LIBS="-ldl  $LIBS"
    4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4023cat >conftest.$ac_ext <<_ACEOF
     4024/* confdefs.h.  */
     4025_ACEOF
     4026cat confdefs.h >>conftest.$ac_ext
     4027cat >>conftest.$ac_ext <<_ACEOF
    42914028/* end confdefs.h.  */
    42924029
     
    43064043}
    43074044_ACEOF
    4308 if ac_fn_c_try_link "$LINENO"; then :
     4045rm -f conftest.$ac_objext conftest$ac_exeext
     4046if { (ac_try="$ac_link"
     4047case "(($ac_try" in
     4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4049  *) ac_try_echo=$ac_try;;
     4050esac
     4051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4052$as_echo "$ac_try_echo") >&5
     4053  (eval "$ac_link") 2>conftest.er1
     4054  ac_status=$?
     4055  grep -v '^ *+' conftest.er1 >conftest.err
     4056  rm -f conftest.er1
     4057  cat conftest.err >&5
     4058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4059  (exit $ac_status); } && {
     4060         test -z "$ac_c_werror_flag" ||
     4061         test ! -s conftest.err
     4062       } && test -s conftest$ac_exeext && {
     4063         test "$cross_compiling" = yes ||
     4064         $as_test_x conftest$ac_exeext
     4065       }; then
    43094066  ac_cv_lib_dl_dlopen=yes
    43104067else
    4311   ac_cv_lib_dl_dlopen=no
    4312 fi
    4313 rm -f core conftest.err conftest.$ac_objext \
    4314     conftest$ac_exeext conftest.$ac_ext
     4068  $as_echo "$as_me: failed program was:" >&5
     4069sed 's/^/| /' conftest.$ac_ext >&5
     4070
     4071        ac_cv_lib_dl_dlopen=no
     4072fi
     4073
     4074rm -rf conftest.dSYM
     4075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4076      conftest$ac_exeext conftest.$ac_ext
    43154077LIBS=$ac_check_lib_save_LIBS
    43164078fi
    4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
     4079{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    43184080$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
    4319 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
     4081if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
    43204082  have_dl=yes
    43214083else
     
    43494111    # Extract the first word of "ar", so it can be a program name with args.
    43504112set dummy ar; ac_word=$2
    4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    43524114$as_echo_n "checking for $ac_word... " >&6; }
    4353 if ${ac_cv_prog_AR+:} false; then :
     4115if test "${ac_cv_prog_AR+set}" = set; then
    43544116  $as_echo_n "(cached) " >&6
    43554117else
     
    43624124  IFS=$as_save_IFS
    43634125  test -z "$as_dir" && as_dir=.
    4364     for ac_exec_ext in '' $ac_executable_extensions; do
    4365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4126  for ac_exec_ext in '' $ac_executable_extensions; do
     4127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    43664128    ac_cv_prog_AR="ar"
    4367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4129    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    43684130    break 2
    43694131  fi
    43704132done
    4371   done
     4133done
    43724134IFS=$as_save_IFS
    43734135
     
    43764138AR=$ac_cv_prog_AR
    43774139if test -n "$AR"; then
    4378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
     4140  { $as_echo "$as_me:$LINENO: result: $AR" >&5
    43794141$as_echo "$AR" >&6; }
    43804142else
    4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4143  { $as_echo "$as_me:$LINENO: result: no" >&5
    43824144$as_echo "no" >&6; }
    43834145fi
     
    43854147
    43864148    if test "${AR}" = "" ; then
    4387         as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
     4149        { { $as_echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5
     4150$as_echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;}
     4151   { (exit 1); exit 1; }; }
    43884152    fi
    43894153    STLIB_LD='${AR} cr'
     
    44034167                        ;;
    44044168                esac
    4405                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
     4169                { $as_echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
    44064170$as_echo "Using $CC for compiling with threads" >&6; }
    44074171            fi
     
    44194183            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
    44204184                if test "$GCC" = "yes" ; then
    4421                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     4185                    { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
    44224186$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    44234187                else
     
    44744238            # known GMT value.
    44754239
    4476             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
     4240            { $as_echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5
    44774241$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
    4478 if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
     4242if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
    44794243  $as_echo_n "(cached) " >&6
    44804244else
    44814245  ac_check_lib_save_LIBS=$LIBS
    44824246LIBS="-lbsd  $LIBS"
    4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4247cat >conftest.$ac_ext <<_ACEOF
     4248/* confdefs.h.  */
     4249_ACEOF
     4250cat confdefs.h >>conftest.$ac_ext
     4251cat >>conftest.$ac_ext <<_ACEOF
    44844252/* end confdefs.h.  */
    44854253
     
    44994267}
    45004268_ACEOF
    4501 if ac_fn_c_try_link "$LINENO"; then :
     4269rm -f conftest.$ac_objext conftest$ac_exeext
     4270if { (ac_try="$ac_link"
     4271case "(($ac_try" in
     4272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4273  *) ac_try_echo=$ac_try;;
     4274esac
     4275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4276$as_echo "$ac_try_echo") >&5
     4277  (eval "$ac_link") 2>conftest.er1
     4278  ac_status=$?
     4279  grep -v '^ *+' conftest.er1 >conftest.err
     4280  rm -f conftest.er1
     4281  cat conftest.err >&5
     4282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4283  (exit $ac_status); } && {
     4284         test -z "$ac_c_werror_flag" ||
     4285         test ! -s conftest.err
     4286       } && test -s conftest$ac_exeext && {
     4287         test "$cross_compiling" = yes ||
     4288         $as_test_x conftest$ac_exeext
     4289       }; then
    45024290  ac_cv_lib_bsd_gettimeofday=yes
    45034291else
    4504   ac_cv_lib_bsd_gettimeofday=no
    4505 fi
    4506 rm -f core conftest.err conftest.$ac_objext \
    4507     conftest$ac_exeext conftest.$ac_ext
     4292  $as_echo "$as_me: failed program was:" >&5
     4293sed 's/^/| /' conftest.$ac_ext >&5
     4294
     4295        ac_cv_lib_bsd_gettimeofday=no
     4296fi
     4297
     4298rm -rf conftest.dSYM
     4299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4300      conftest$ac_exeext conftest.$ac_ext
    45084301LIBS=$ac_check_lib_save_LIBS
    45094302fi
    4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
     4303{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5
    45114304$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
    4512 if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
     4305if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then
    45134306  libbsd=yes
    45144307else
     
    45184311            if test $libbsd = yes; then
    45194312                MATH_LIBS="$MATH_LIBS -lbsd"
    4520                 $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
     4313                cat >>confdefs.h <<\_ACEOF
     4314#define USE_DELTA_FOR_TZ 1
     4315_ACEOF
    45214316
    45224317            fi
     
    45354330            # is always linked to, for compatibility.
    45364331            #-----------------------------------------------------------
    4537             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
     4332            { $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
    45384333$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
    4539 if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
     4334if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
    45404335  $as_echo_n "(cached) " >&6
    45414336else
    45424337  ac_check_lib_save_LIBS=$LIBS
    45434338LIBS="-lbind  $LIBS"
    4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4339cat >conftest.$ac_ext <<_ACEOF
     4340/* confdefs.h.  */
     4341_ACEOF
     4342cat confdefs.h >>conftest.$ac_ext
     4343cat >>conftest.$ac_ext <<_ACEOF
    45454344/* end confdefs.h.  */
    45464345
     
    45604359}
    45614360_ACEOF
    4562 if ac_fn_c_try_link "$LINENO"; then :
     4361rm -f conftest.$ac_objext conftest$ac_exeext
     4362if { (ac_try="$ac_link"
     4363case "(($ac_try" in
     4364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4365  *) ac_try_echo=$ac_try;;
     4366esac
     4367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4368$as_echo "$ac_try_echo") >&5
     4369  (eval "$ac_link") 2>conftest.er1
     4370  ac_status=$?
     4371  grep -v '^ *+' conftest.er1 >conftest.err
     4372  rm -f conftest.er1
     4373  cat conftest.err >&5
     4374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4375  (exit $ac_status); } && {
     4376         test -z "$ac_c_werror_flag" ||
     4377         test ! -s conftest.err
     4378       } && test -s conftest$ac_exeext && {
     4379         test "$cross_compiling" = yes ||
     4380         $as_test_x conftest$ac_exeext
     4381       }; then
    45634382  ac_cv_lib_bind_inet_ntoa=yes
    45644383else
    4565   ac_cv_lib_bind_inet_ntoa=no
    4566 fi
    4567 rm -f core conftest.err conftest.$ac_objext \
    4568     conftest$ac_exeext conftest.$ac_ext
     4384  $as_echo "$as_me: failed program was:" >&5
     4385sed 's/^/| /' conftest.$ac_ext >&5
     4386
     4387        ac_cv_lib_bind_inet_ntoa=no
     4388fi
     4389
     4390rm -rf conftest.dSYM
     4391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4392      conftest$ac_exeext conftest.$ac_ext
    45694393LIBS=$ac_check_lib_save_LIBS
    45704394fi
    4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
     4395{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
    45724396$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
    4573 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
     4397if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then
    45744398  LIBS="$LIBS -lbind -lsocket"
    45754399fi
     
    46094433        HP-UX-*.11.*)
    46104434            # Use updated header definitions where possible
    4611             $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
     4435            cat >>confdefs.h <<\_ACEOF
     4436#define _XOPEN_SOURCE 1
     4437_ACEOF
    46124438          # Use the XOPEN network library
    4613             $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
     4439            cat >>confdefs.h <<\_ACEOF
     4440#define _XOPEN_SOURCE_EXTENDED 1
     4441_ACEOF
    46144442 # Use the XOPEN network library
    46154443            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
     
    46204448                SHLIB_SUFFIX=".sl"
    46214449            fi
    4622             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
     4450            { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    46234451$as_echo_n "checking for shl_load in -ldld... " >&6; }
    4624 if ${ac_cv_lib_dld_shl_load+:} false; then :
     4452if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    46254453  $as_echo_n "(cached) " >&6
    46264454else
    46274455  ac_check_lib_save_LIBS=$LIBS
    46284456LIBS="-ldld  $LIBS"
    4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4457cat >conftest.$ac_ext <<_ACEOF
     4458/* confdefs.h.  */
     4459_ACEOF
     4460cat confdefs.h >>conftest.$ac_ext
     4461cat >>conftest.$ac_ext <<_ACEOF
    46304462/* end confdefs.h.  */
    46314463
     
    46454477}
    46464478_ACEOF
    4647 if ac_fn_c_try_link "$LINENO"; then :
     4479rm -f conftest.$ac_objext conftest$ac_exeext
     4480if { (ac_try="$ac_link"
     4481case "(($ac_try" in
     4482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4483  *) ac_try_echo=$ac_try;;
     4484esac
     4485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4486$as_echo "$ac_try_echo") >&5
     4487  (eval "$ac_link") 2>conftest.er1
     4488  ac_status=$?
     4489  grep -v '^ *+' conftest.er1 >conftest.err
     4490  rm -f conftest.er1
     4491  cat conftest.err >&5
     4492  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4493  (exit $ac_status); } && {
     4494         test -z "$ac_c_werror_flag" ||
     4495         test ! -s conftest.err
     4496       } && test -s conftest$ac_exeext && {
     4497         test "$cross_compiling" = yes ||
     4498         $as_test_x conftest$ac_exeext
     4499       }; then
    46484500  ac_cv_lib_dld_shl_load=yes
    46494501else
    4650   ac_cv_lib_dld_shl_load=no
    4651 fi
    4652 rm -f core conftest.err conftest.$ac_objext \
    4653     conftest$ac_exeext conftest.$ac_ext
     4502  $as_echo "$as_me: failed program was:" >&5
     4503sed 's/^/| /' conftest.$ac_ext >&5
     4504
     4505        ac_cv_lib_dld_shl_load=no
     4506fi
     4507
     4508rm -rf conftest.dSYM
     4509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4510      conftest$ac_exeext conftest.$ac_ext
    46544511LIBS=$ac_check_lib_save_LIBS
    46554512fi
    4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
     4513{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    46574514$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    4658 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
     4515if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
    46594516  tcl_ok=yes
    46604517else
     
    46964553                            ;;
    46974554                        *)
    4698                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     4555                            { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
    46994556$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    47004557                            ;;
     
    47094566        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
    47104567            SHLIB_SUFFIX=".sl"
    4711             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
     4568            { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    47124569$as_echo_n "checking for shl_load in -ldld... " >&6; }
    4713 if ${ac_cv_lib_dld_shl_load+:} false; then :
     4570if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    47144571  $as_echo_n "(cached) " >&6
    47154572else
    47164573  ac_check_lib_save_LIBS=$LIBS
    47174574LIBS="-ldld  $LIBS"
    4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4575cat >conftest.$ac_ext <<_ACEOF
     4576/* confdefs.h.  */
     4577_ACEOF
     4578cat confdefs.h >>conftest.$ac_ext
     4579cat >>conftest.$ac_ext <<_ACEOF
    47194580/* end confdefs.h.  */
    47204581
     
    47344595}
    47354596_ACEOF
    4736 if ac_fn_c_try_link "$LINENO"; then :
     4597rm -f conftest.$ac_objext conftest$ac_exeext
     4598if { (ac_try="$ac_link"
     4599case "(($ac_try" in
     4600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4601  *) ac_try_echo=$ac_try;;
     4602esac
     4603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4604$as_echo "$ac_try_echo") >&5
     4605  (eval "$ac_link") 2>conftest.er1
     4606  ac_status=$?
     4607  grep -v '^ *+' conftest.er1 >conftest.err
     4608  rm -f conftest.er1
     4609  cat conftest.err >&5
     4610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4611  (exit $ac_status); } && {
     4612         test -z "$ac_c_werror_flag" ||
     4613         test ! -s conftest.err
     4614       } && test -s conftest$ac_exeext && {
     4615         test "$cross_compiling" = yes ||
     4616         $as_test_x conftest$ac_exeext
     4617       }; then
    47374618  ac_cv_lib_dld_shl_load=yes
    47384619else
    4739   ac_cv_lib_dld_shl_load=no
    4740 fi
    4741 rm -f core conftest.err conftest.$ac_objext \
    4742     conftest$ac_exeext conftest.$ac_ext
     4620  $as_echo "$as_me: failed program was:" >&5
     4621sed 's/^/| /' conftest.$ac_ext >&5
     4622
     4623        ac_cv_lib_dld_shl_load=no
     4624fi
     4625
     4626rm -rf conftest.dSYM
     4627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4628      conftest$ac_exeext conftest.$ac_ext
    47434629LIBS=$ac_check_lib_save_LIBS
    47444630fi
    4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
     4631{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    47464632$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    4747 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
     4633if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
    47484634  tcl_ok=yes
    47494635else
     
    48244710            if test "$do64bit" = "yes" ; then
    48254711                if test "$GCC" = "yes" ; then
    4826                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
     4712                    { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
    48274713$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
    48284714                else
     
    48534739                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    48544740            else
    4855                 ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
    4856 if test "x$ac_cv_header_dld_h" = xyes; then :
     4741                if test "${ac_cv_header_dld_h+set}" = set; then
     4742  { $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     4743$as_echo_n "checking for dld.h... " >&6; }
     4744if test "${ac_cv_header_dld_h+set}" = set; then
     4745  $as_echo_n "(cached) " >&6
     4746fi
     4747{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     4748$as_echo "$ac_cv_header_dld_h" >&6; }
     4749else
     4750  # Is the header compilable?
     4751{ $as_echo "$as_me:$LINENO: checking dld.h usability" >&5
     4752$as_echo_n "checking dld.h usability... " >&6; }
     4753cat >conftest.$ac_ext <<_ACEOF
     4754/* confdefs.h.  */
     4755_ACEOF
     4756cat confdefs.h >>conftest.$ac_ext
     4757cat >>conftest.$ac_ext <<_ACEOF
     4758/* end confdefs.h.  */
     4759$ac_includes_default
     4760#include <dld.h>
     4761_ACEOF
     4762rm -f conftest.$ac_objext
     4763if { (ac_try="$ac_compile"
     4764case "(($ac_try" in
     4765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4766  *) ac_try_echo=$ac_try;;
     4767esac
     4768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4769$as_echo "$ac_try_echo") >&5
     4770  (eval "$ac_compile") 2>conftest.er1
     4771  ac_status=$?
     4772  grep -v '^ *+' conftest.er1 >conftest.err
     4773  rm -f conftest.er1
     4774  cat conftest.err >&5
     4775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4776  (exit $ac_status); } && {
     4777         test -z "$ac_c_werror_flag" ||
     4778         test ! -s conftest.err
     4779       } && test -s conftest.$ac_objext; then
     4780  ac_header_compiler=yes
     4781else
     4782  $as_echo "$as_me: failed program was:" >&5
     4783sed 's/^/| /' conftest.$ac_ext >&5
     4784
     4785        ac_header_compiler=no
     4786fi
     4787
     4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4789{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4790$as_echo "$ac_header_compiler" >&6; }
     4791
     4792# Is the header present?
     4793{ $as_echo "$as_me:$LINENO: checking dld.h presence" >&5
     4794$as_echo_n "checking dld.h presence... " >&6; }
     4795cat >conftest.$ac_ext <<_ACEOF
     4796/* confdefs.h.  */
     4797_ACEOF
     4798cat confdefs.h >>conftest.$ac_ext
     4799cat >>conftest.$ac_ext <<_ACEOF
     4800/* end confdefs.h.  */
     4801#include <dld.h>
     4802_ACEOF
     4803if { (ac_try="$ac_cpp conftest.$ac_ext"
     4804case "(($ac_try" in
     4805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4806  *) ac_try_echo=$ac_try;;
     4807esac
     4808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4809$as_echo "$ac_try_echo") >&5
     4810  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     4811  ac_status=$?
     4812  grep -v '^ *+' conftest.er1 >conftest.err
     4813  rm -f conftest.er1
     4814  cat conftest.err >&5
     4815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4816  (exit $ac_status); } >/dev/null && {
     4817         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4818         test ! -s conftest.err
     4819       }; then
     4820  ac_header_preproc=yes
     4821else
     4822  $as_echo "$as_me: failed program was:" >&5
     4823sed 's/^/| /' conftest.$ac_ext >&5
     4824
     4825  ac_header_preproc=no
     4826fi
     4827
     4828rm -f conftest.err conftest.$ac_ext
     4829{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4830$as_echo "$ac_header_preproc" >&6; }
     4831
     4832# So?  What about this header?
     4833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4834  yes:no: )
     4835    { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4836$as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4837    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
     4838$as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
     4839    ac_header_preproc=yes
     4840    ;;
     4841  no:yes:* )
     4842    { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
     4843$as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
     4844    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
     4845$as_echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
     4846    { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
     4847$as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
     4848    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
     4849$as_echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4850    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
     4851$as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
     4852    { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
     4853$as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
     4854    ( cat <<\_ASBOX
     4855## ----------------------------------- ##
     4856## Report this to rappture@nanohub.org ##
     4857## ----------------------------------- ##
     4858_ASBOX
     4859     ) | sed "s/^/$as_me: WARNING:     /" >&2
     4860    ;;
     4861esac
     4862{ $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     4863$as_echo_n "checking for dld.h... " >&6; }
     4864if test "${ac_cv_header_dld_h+set}" = set; then
     4865  $as_echo_n "(cached) " >&6
     4866else
     4867  ac_cv_header_dld_h=$ac_header_preproc
     4868fi
     4869{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     4870$as_echo "$ac_cv_header_dld_h" >&6; }
     4871
     4872fi
     4873if test "x$ac_cv_header_dld_h" = x""yes; then
    48574874
    48584875                    SHLIB_LD="ld -shared"
     
    48694886            fi
    48704887            if test $do64bit = yes; then
    4871                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
     4888                { $as_echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
    48724889$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
    4873 if ${tcl_cv_cc_m64+:} false; then :
     4890if test "${tcl_cv_cc_m64+set}" = set; then
    48744891  $as_echo_n "(cached) " >&6
    48754892else
     
    48774894                    hold_cflags=$CFLAGS
    48784895                    CFLAGS="$CFLAGS -m64"
    4879                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4896                    cat >conftest.$ac_ext <<_ACEOF
     4897/* confdefs.h.  */
     4898_ACEOF
     4899cat confdefs.h >>conftest.$ac_ext
     4900cat >>conftest.$ac_ext <<_ACEOF
    48804901/* end confdefs.h.  */
    48814902
     
    48884909}
    48894910_ACEOF
    4890 if ac_fn_c_try_link "$LINENO"; then :
     4911rm -f conftest.$ac_objext conftest$ac_exeext
     4912if { (ac_try="$ac_link"
     4913case "(($ac_try" in
     4914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4915  *) ac_try_echo=$ac_try;;
     4916esac
     4917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4918$as_echo "$ac_try_echo") >&5
     4919  (eval "$ac_link") 2>conftest.er1
     4920  ac_status=$?
     4921  grep -v '^ *+' conftest.er1 >conftest.err
     4922  rm -f conftest.er1
     4923  cat conftest.err >&5
     4924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4925  (exit $ac_status); } && {
     4926         test -z "$ac_c_werror_flag" ||
     4927         test ! -s conftest.err
     4928       } && test -s conftest$ac_exeext && {
     4929         test "$cross_compiling" = yes ||
     4930         $as_test_x conftest$ac_exeext
     4931       }; then
    48914932  tcl_cv_cc_m64=yes
    48924933else
    4893   tcl_cv_cc_m64=no
    4894 fi
    4895 rm -f core conftest.err conftest.$ac_objext \
    4896     conftest$ac_exeext conftest.$ac_ext
     4934  $as_echo "$as_me: failed program was:" >&5
     4935sed 's/^/| /' conftest.$ac_ext >&5
     4936
     4937        tcl_cv_cc_m64=no
     4938fi
     4939
     4940rm -rf conftest.dSYM
     4941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4942      conftest$ac_exeext conftest.$ac_ext
    48974943                    CFLAGS=$hold_cflags
    48984944fi
    4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
     4945{ $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
    49004946$as_echo "$tcl_cv_cc_m64" >&6; }
    49014947                if test $tcl_cv_cc_m64 = yes; then
     
    49174963
    49184964            # XIM peeking works under XFree86.
    4919             $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
     4965            cat >>confdefs.h <<\_ACEOF
     4966#define PEEK_XCLOSEIM 1
     4967_ACEOF
    49204968
    49214969
     
    49344982                LD_SEARCH_FLAGS=""
    49354983            else
    4936                 ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
    4937 if test "x$ac_cv_header_dld_h" = xyes; then :
     4984                if test "${ac_cv_header_dld_h+set}" = set; then
     4985  { $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     4986$as_echo_n "checking for dld.h... " >&6; }
     4987if test "${ac_cv_header_dld_h+set}" = set; then
     4988  $as_echo_n "(cached) " >&6
     4989fi
     4990{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     4991$as_echo "$ac_cv_header_dld_h" >&6; }
     4992else
     4993  # Is the header compilable?
     4994{ $as_echo "$as_me:$LINENO: checking dld.h usability" >&5
     4995$as_echo_n "checking dld.h usability... " >&6; }
     4996cat >conftest.$ac_ext <<_ACEOF
     4997/* confdefs.h.  */
     4998_ACEOF
     4999cat confdefs.h >>conftest.$ac_ext
     5000cat >>conftest.$ac_ext <<_ACEOF
     5001/* end confdefs.h.  */
     5002$ac_includes_default
     5003#include <dld.h>
     5004_ACEOF
     5005rm -f conftest.$ac_objext
     5006if { (ac_try="$ac_compile"
     5007case "(($ac_try" in
     5008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5009  *) ac_try_echo=$ac_try;;
     5010esac
     5011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5012$as_echo "$ac_try_echo") >&5
     5013  (eval "$ac_compile") 2>conftest.er1
     5014  ac_status=$?
     5015  grep -v '^ *+' conftest.er1 >conftest.err
     5016  rm -f conftest.er1
     5017  cat conftest.err >&5
     5018  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5019  (exit $ac_status); } && {
     5020         test -z "$ac_c_werror_flag" ||
     5021         test ! -s conftest.err
     5022       } && test -s conftest.$ac_objext; then
     5023  ac_header_compiler=yes
     5024else
     5025  $as_echo "$as_me: failed program was:" >&5
     5026sed 's/^/| /' conftest.$ac_ext >&5
     5027
     5028        ac_header_compiler=no
     5029fi
     5030
     5031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5032{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5033$as_echo "$ac_header_compiler" >&6; }
     5034
     5035# Is the header present?
     5036{ $as_echo "$as_me:$LINENO: checking dld.h presence" >&5
     5037$as_echo_n "checking dld.h presence... " >&6; }
     5038cat >conftest.$ac_ext <<_ACEOF
     5039/* confdefs.h.  */
     5040_ACEOF
     5041cat confdefs.h >>conftest.$ac_ext
     5042cat >>conftest.$ac_ext <<_ACEOF
     5043/* end confdefs.h.  */
     5044#include <dld.h>
     5045_ACEOF
     5046if { (ac_try="$ac_cpp conftest.$ac_ext"
     5047case "(($ac_try" in
     5048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5049  *) ac_try_echo=$ac_try;;
     5050esac
     5051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5052$as_echo "$ac_try_echo") >&5
     5053  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     5054  ac_status=$?
     5055  grep -v '^ *+' conftest.er1 >conftest.err
     5056  rm -f conftest.er1
     5057  cat conftest.err >&5
     5058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5059  (exit $ac_status); } >/dev/null && {
     5060         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     5061         test ! -s conftest.err
     5062       }; then
     5063  ac_header_preproc=yes
     5064else
     5065  $as_echo "$as_me: failed program was:" >&5
     5066sed 's/^/| /' conftest.$ac_ext >&5
     5067
     5068  ac_header_preproc=no
     5069fi
     5070
     5071rm -f conftest.err conftest.$ac_ext
     5072{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5073$as_echo "$ac_header_preproc" >&6; }
     5074
     5075# So?  What about this header?
     5076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5077  yes:no: )
     5078    { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5079$as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5080    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
     5081$as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
     5082    ac_header_preproc=yes
     5083    ;;
     5084  no:yes:* )
     5085    { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
     5086$as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
     5087    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
     5088$as_echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
     5089    { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
     5090$as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
     5091    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
     5092$as_echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5093    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
     5094$as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
     5095    { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
     5096$as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
     5097    ( cat <<\_ASBOX
     5098## ----------------------------------- ##
     5099## Report this to rappture@nanohub.org ##
     5100## ----------------------------------- ##
     5101_ASBOX
     5102     ) | sed "s/^/$as_me: WARNING:     /" >&2
     5103    ;;
     5104esac
     5105{ $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     5106$as_echo_n "checking for dld.h... " >&6; }
     5107if test "${ac_cv_header_dld_h+set}" = set; then
     5108  $as_echo_n "(cached) " >&6
     5109else
     5110  ac_cv_header_dld_h=$ac_header_preproc
     5111fi
     5112{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     5113$as_echo "$ac_cv_header_dld_h" >&6; }
     5114
     5115fi
     5116if test "x$ac_cv_header_dld_h" = x""yes; then
    49385117
    49395118                    SHLIB_LD="ld -shared"
     
    49855164        NetBSD-*|FreeBSD-[1-2].*)
    49865165            # Not available on all versions:  check for include file.
    4987             ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
    4988 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
     5166            if test "${ac_cv_header_dlfcn_h+set}" = set; then
     5167  { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
     5168$as_echo_n "checking for dlfcn.h... " >&6; }
     5169if test "${ac_cv_header_dlfcn_h+set}" = set; then
     5170  $as_echo_n "(cached) " >&6
     5171fi
     5172{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
     5173$as_echo "$ac_cv_header_dlfcn_h" >&6; }
     5174else
     5175  # Is the header compilable?
     5176{ $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
     5177$as_echo_n "checking dlfcn.h usability... " >&6; }
     5178cat >conftest.$ac_ext <<_ACEOF
     5179/* confdefs.h.  */
     5180_ACEOF
     5181cat confdefs.h >>conftest.$ac_ext
     5182cat >>conftest.$ac_ext <<_ACEOF
     5183/* end confdefs.h.  */
     5184$ac_includes_default
     5185#include <dlfcn.h>
     5186_ACEOF
     5187rm -f conftest.$ac_objext
     5188if { (ac_try="$ac_compile"
     5189case "(($ac_try" in
     5190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5191  *) ac_try_echo=$ac_try;;
     5192esac
     5193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5194$as_echo "$ac_try_echo") >&5
     5195  (eval "$ac_compile") 2>conftest.er1
     5196  ac_status=$?
     5197  grep -v '^ *+' conftest.er1 >conftest.err
     5198  rm -f conftest.er1
     5199  cat conftest.err >&5
     5200  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5201  (exit $ac_status); } && {
     5202         test -z "$ac_c_werror_flag" ||
     5203         test ! -s conftest.err
     5204       } && test -s conftest.$ac_objext; then
     5205  ac_header_compiler=yes
     5206else
     5207  $as_echo "$as_me: failed program was:" >&5
     5208sed 's/^/| /' conftest.$ac_ext >&5
     5209
     5210        ac_header_compiler=no
     5211fi
     5212
     5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5214{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5215$as_echo "$ac_header_compiler" >&6; }
     5216
     5217# Is the header present?
     5218{ $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
     5219$as_echo_n "checking dlfcn.h presence... " >&6; }
     5220cat >conftest.$ac_ext <<_ACEOF
     5221/* confdefs.h.  */
     5222_ACEOF
     5223cat confdefs.h >>conftest.$ac_ext
     5224cat >>conftest.$ac_ext <<_ACEOF
     5225/* end confdefs.h.  */
     5226#include <dlfcn.h>
     5227_ACEOF
     5228if { (ac_try="$ac_cpp conftest.$ac_ext"
     5229case "(($ac_try" in
     5230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5231  *) ac_try_echo=$ac_try;;
     5232esac
     5233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5234$as_echo "$ac_try_echo") >&5
     5235  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     5236  ac_status=$?
     5237  grep -v '^ *+' conftest.er1 >conftest.err
     5238  rm -f conftest.er1
     5239  cat conftest.err >&5
     5240  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5241  (exit $ac_status); } >/dev/null && {
     5242         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     5243         test ! -s conftest.err
     5244       }; then
     5245  ac_header_preproc=yes
     5246else
     5247  $as_echo "$as_me: failed program was:" >&5
     5248sed 's/^/| /' conftest.$ac_ext >&5
     5249
     5250  ac_header_preproc=no
     5251fi
     5252
     5253rm -f conftest.err conftest.$ac_ext
     5254{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5255$as_echo "$ac_header_preproc" >&6; }
     5256
     5257# So?  What about this header?
     5258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5259  yes:no: )
     5260    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5261$as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5262    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
     5263$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
     5264    ac_header_preproc=yes
     5265    ;;
     5266  no:yes:* )
     5267    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
     5268$as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
     5269    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
     5270$as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
     5271    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
     5272$as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
     5273    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
     5274$as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5275    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
     5276$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
     5277    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
     5278$as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
     5279    ( cat <<\_ASBOX
     5280## ----------------------------------- ##
     5281## Report this to rappture@nanohub.org ##
     5282## ----------------------------------- ##
     5283_ASBOX
     5284     ) | sed "s/^/$as_me: WARNING:     /" >&2
     5285    ;;
     5286esac
     5287{ $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
     5288$as_echo_n "checking for dlfcn.h... " >&6; }
     5289if test "${ac_cv_header_dlfcn_h+set}" = set; then
     5290  $as_echo_n "(cached) " >&6
     5291else
     5292  ac_cv_header_dlfcn_h=$ac_header_preproc
     5293fi
     5294{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
     5295$as_echo "$ac_cv_header_dlfcn_h" >&6; }
     5296
     5297fi
     5298if test "x$ac_cv_header_dlfcn_h" = x""yes; then
    49895299
    49905300                # NetBSD/SPARC needs -fPIC, -fpic will not do.
     
    49975307                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    49985308                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    4999                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
     5309                { $as_echo "$as_me:$LINENO: checking for ELF" >&5
    50005310$as_echo_n "checking for ELF... " >&6; }
    5001 if ${tcl_cv_ld_elf+:} false; then :
     5311if test "${tcl_cv_ld_elf+set}" = set; then
    50025312  $as_echo_n "(cached) " >&6
    50035313else
    50045314
    5005                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5315                    cat >conftest.$ac_ext <<_ACEOF
     5316/* confdefs.h.  */
     5317_ACEOF
     5318cat confdefs.h >>conftest.$ac_ext
     5319cat >>conftest.$ac_ext <<_ACEOF
    50065320/* end confdefs.h.  */
    50075321
     
    50125326_ACEOF
    50135327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5014   $EGREP "yes" >/dev/null 2>&1; then :
     5328  $EGREP "yes" >/dev/null 2>&1; then
    50155329  tcl_cv_ld_elf=yes
    50165330else
     
    50205334
    50215335fi
    5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
     5336{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
    50235337$as_echo "$tcl_cv_ld_elf" >&6; }
    50245338                if test $tcl_cv_ld_elf = yes; then
     
    50795393                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    50805394                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
    5081                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
     5395                { $as_echo "$as_me:$LINENO: checking for ELF" >&5
    50825396$as_echo_n "checking for ELF... " >&6; }
    5083 if ${tcl_cv_ld_elf+:} false; then :
     5397if test "${tcl_cv_ld_elf+set}" = set; then
    50845398  $as_echo_n "(cached) " >&6
    50855399else
    50865400
    5087                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5401                    cat >conftest.$ac_ext <<_ACEOF
     5402/* confdefs.h.  */
     5403_ACEOF
     5404cat confdefs.h >>conftest.$ac_ext
     5405cat >>conftest.$ac_ext <<_ACEOF
    50885406/* end confdefs.h.  */
    50895407
     
    50945412_ACEOF
    50955413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5096   $EGREP "yes" >/dev/null 2>&1; then :
     5414  $EGREP "yes" >/dev/null 2>&1; then
    50975415  tcl_cv_ld_elf=yes
    50985416else
     
    51025420
    51035421fi
    5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
     5422{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
    51055423$as_echo "$tcl_cv_ld_elf" >&6; }
    51065424                if test $tcl_cv_ld_elf = yes; then
     
    51575475                case `arch` in
    51585476                    ppc)
    5159                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
     5477                        { $as_echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
    51605478$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
    5161 if ${tcl_cv_cc_arch_ppc64+:} false; then :
     5479if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
    51625480  $as_echo_n "(cached) " >&6
    51635481else
     
    51655483                            hold_cflags=$CFLAGS
    51665484                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
    5167                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5485                            cat >conftest.$ac_ext <<_ACEOF
     5486/* confdefs.h.  */
     5487_ACEOF
     5488cat confdefs.h >>conftest.$ac_ext
     5489cat >>conftest.$ac_ext <<_ACEOF
    51685490/* end confdefs.h.  */
    51695491
     
    51765498}
    51775499_ACEOF
    5178 if ac_fn_c_try_link "$LINENO"; then :
     5500rm -f conftest.$ac_objext conftest$ac_exeext
     5501if { (ac_try="$ac_link"
     5502case "(($ac_try" in
     5503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5504  *) ac_try_echo=$ac_try;;
     5505esac
     5506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5507$as_echo "$ac_try_echo") >&5
     5508  (eval "$ac_link") 2>conftest.er1
     5509  ac_status=$?
     5510  grep -v '^ *+' conftest.er1 >conftest.err
     5511  rm -f conftest.er1
     5512  cat conftest.err >&5
     5513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5514  (exit $ac_status); } && {
     5515         test -z "$ac_c_werror_flag" ||
     5516         test ! -s conftest.err
     5517       } && test -s conftest$ac_exeext && {
     5518         test "$cross_compiling" = yes ||
     5519         $as_test_x conftest$ac_exeext
     5520       }; then
    51795521  tcl_cv_cc_arch_ppc64=yes
    51805522else
    5181   tcl_cv_cc_arch_ppc64=no
    5182 fi
    5183 rm -f core conftest.err conftest.$ac_objext \
    5184     conftest$ac_exeext conftest.$ac_ext
     5523  $as_echo "$as_me: failed program was:" >&5
     5524sed 's/^/| /' conftest.$ac_ext >&5
     5525
     5526        tcl_cv_cc_arch_ppc64=no
     5527fi
     5528
     5529rm -rf conftest.dSYM
     5530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5531      conftest$ac_exeext conftest.$ac_ext
    51855532                            CFLAGS=$hold_cflags
    51865533fi
    5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
     5534{ $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
    51885535$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
    51895536                        if test $tcl_cv_cc_arch_ppc64 = yes; then
     
    51925539                        fi;;
    51935540                    i386)
    5194                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
     5541                        { $as_echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
    51955542$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
    5196 if ${tcl_cv_cc_arch_x86_64+:} false; then :
     5543if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
    51975544  $as_echo_n "(cached) " >&6
    51985545else
     
    52005547                            hold_cflags=$CFLAGS
    52015548                            CFLAGS="$CFLAGS -arch x86_64"
    5202                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5549                            cat >conftest.$ac_ext <<_ACEOF
     5550/* confdefs.h.  */
     5551_ACEOF
     5552cat confdefs.h >>conftest.$ac_ext
     5553cat >>conftest.$ac_ext <<_ACEOF
    52035554/* end confdefs.h.  */
    52045555
     
    52115562}
    52125563_ACEOF
    5213 if ac_fn_c_try_link "$LINENO"; then :
     5564rm -f conftest.$ac_objext conftest$ac_exeext
     5565if { (ac_try="$ac_link"
     5566case "(($ac_try" in
     5567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5568  *) ac_try_echo=$ac_try;;
     5569esac
     5570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5571$as_echo "$ac_try_echo") >&5
     5572  (eval "$ac_link") 2>conftest.er1
     5573  ac_status=$?
     5574  grep -v '^ *+' conftest.er1 >conftest.err
     5575  rm -f conftest.er1
     5576  cat conftest.err >&5
     5577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5578  (exit $ac_status); } && {
     5579         test -z "$ac_c_werror_flag" ||
     5580         test ! -s conftest.err
     5581       } && test -s conftest$ac_exeext && {
     5582         test "$cross_compiling" = yes ||
     5583         $as_test_x conftest$ac_exeext
     5584       }; then
    52145585  tcl_cv_cc_arch_x86_64=yes
    52155586else
    5216   tcl_cv_cc_arch_x86_64=no
    5217 fi
    5218 rm -f core conftest.err conftest.$ac_objext \
    5219     conftest$ac_exeext conftest.$ac_ext
     5587  $as_echo "$as_me: failed program was:" >&5
     5588sed 's/^/| /' conftest.$ac_ext >&5
     5589
     5590        tcl_cv_cc_arch_x86_64=no
     5591fi
     5592
     5593rm -rf conftest.dSYM
     5594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5595      conftest$ac_exeext conftest.$ac_ext
    52205596                            CFLAGS=$hold_cflags
    52215597fi
    5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
     5598{ $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
    52235599$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
    52245600                        if test $tcl_cv_cc_arch_x86_64 = yes; then
     
    52275603                        fi;;
    52285604                    *)
    5229                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
     5605                        { $as_echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
    52305606$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
    52315607                esac
     
    52375613            fi
    52385614            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
    5239             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
     5615            { $as_echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5
    52405616$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
    5241 if ${tcl_cv_ld_single_module+:} false; then :
     5617if test "${tcl_cv_ld_single_module+set}" = set; then
    52425618  $as_echo_n "(cached) " >&6
    52435619else
     
    52455621                hold_ldflags=$LDFLAGS
    52465622                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
    5247                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5623                cat >conftest.$ac_ext <<_ACEOF
     5624/* confdefs.h.  */
     5625_ACEOF
     5626cat confdefs.h >>conftest.$ac_ext
     5627cat >>conftest.$ac_ext <<_ACEOF
    52485628/* end confdefs.h.  */
    52495629
     
    52565636}
    52575637_ACEOF
    5258 if ac_fn_c_try_link "$LINENO"; then :
     5638rm -f conftest.$ac_objext conftest$ac_exeext
     5639if { (ac_try="$ac_link"
     5640case "(($ac_try" in
     5641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5642  *) ac_try_echo=$ac_try;;
     5643esac
     5644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5645$as_echo "$ac_try_echo") >&5
     5646  (eval "$ac_link") 2>conftest.er1
     5647  ac_status=$?
     5648  grep -v '^ *+' conftest.er1 >conftest.err
     5649  rm -f conftest.er1
     5650  cat conftest.err >&5
     5651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5652  (exit $ac_status); } && {
     5653         test -z "$ac_c_werror_flag" ||
     5654         test ! -s conftest.err
     5655       } && test -s conftest$ac_exeext && {
     5656         test "$cross_compiling" = yes ||
     5657         $as_test_x conftest$ac_exeext
     5658       }; then
    52595659  tcl_cv_ld_single_module=yes
    52605660else
    5261   tcl_cv_ld_single_module=no
    5262 fi
    5263 rm -f core conftest.err conftest.$ac_objext \
    5264     conftest$ac_exeext conftest.$ac_ext
     5661  $as_echo "$as_me: failed program was:" >&5
     5662sed 's/^/| /' conftest.$ac_ext >&5
     5663
     5664        tcl_cv_ld_single_module=no
     5665fi
     5666
     5667rm -rf conftest.dSYM
     5668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5669      conftest$ac_exeext conftest.$ac_ext
    52655670                LDFLAGS=$hold_ldflags
    52665671fi
    5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
     5672{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
    52685673$as_echo "$tcl_cv_ld_single_module" >&6; }
    52695674            if test $tcl_cv_ld_single_module = yes; then
     
    52795684                LDFLAGS="$LDFLAGS -prebind"
    52805685            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
    5281             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
     5686            { $as_echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
    52825687$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
    5283 if ${tcl_cv_ld_search_paths_first+:} false; then :
     5688if test "${tcl_cv_ld_search_paths_first+set}" = set; then
    52845689  $as_echo_n "(cached) " >&6
    52855690else
     
    52875692                hold_ldflags=$LDFLAGS
    52885693                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
    5289                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5694                cat >conftest.$ac_ext <<_ACEOF
     5695/* confdefs.h.  */
     5696_ACEOF
     5697cat confdefs.h >>conftest.$ac_ext
     5698cat >>conftest.$ac_ext <<_ACEOF
    52905699/* end confdefs.h.  */
    52915700
     
    52985707}
    52995708_ACEOF
    5300 if ac_fn_c_try_link "$LINENO"; then :
     5709rm -f conftest.$ac_objext conftest$ac_exeext
     5710if { (ac_try="$ac_link"
     5711case "(($ac_try" in
     5712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5713  *) ac_try_echo=$ac_try;;
     5714esac
     5715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5716$as_echo "$ac_try_echo") >&5
     5717  (eval "$ac_link") 2>conftest.er1
     5718  ac_status=$?
     5719  grep -v '^ *+' conftest.er1 >conftest.err
     5720  rm -f conftest.er1
     5721  cat conftest.err >&5
     5722  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5723  (exit $ac_status); } && {
     5724         test -z "$ac_c_werror_flag" ||
     5725         test ! -s conftest.err
     5726       } && test -s conftest$ac_exeext && {
     5727         test "$cross_compiling" = yes ||
     5728         $as_test_x conftest$ac_exeext
     5729       }; then
    53015730  tcl_cv_ld_search_paths_first=yes
    53025731else
    5303   tcl_cv_ld_search_paths_first=no
    5304 fi
    5305 rm -f core conftest.err conftest.$ac_objext \
    5306     conftest$ac_exeext conftest.$ac_ext
     5732  $as_echo "$as_me: failed program was:" >&5
     5733sed 's/^/| /' conftest.$ac_ext >&5
     5734
     5735        tcl_cv_ld_search_paths_first=no
     5736fi
     5737
     5738rm -rf conftest.dSYM
     5739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5740      conftest$ac_exeext conftest.$ac_ext
    53075741                LDFLAGS=$hold_ldflags
    53085742fi
    5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
     5743{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
    53105744$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
    53115745            if test $tcl_cv_ld_search_paths_first = yes; then
     
    53175751            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
    53185752            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
    5319             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
     5753            { $as_echo "$as_me:$LINENO: checking whether to use CoreFoundation" >&5
    53205754$as_echo_n "checking whether to use CoreFoundation... " >&6; }
    53215755            # Check whether --enable-corefoundation was given.
    5322 if test "${enable_corefoundation+set}" = set; then :
     5756if test "${enable_corefoundation+set}" = set; then
    53235757  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
    53245758else
     
    53265760fi
    53275761
    5328             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
     5762            { $as_echo "$as_me:$LINENO: result: $tcl_corefoundation" >&5
    53295763$as_echo "$tcl_corefoundation" >&6; }
    53305764            if test $tcl_corefoundation = yes; then
    5331                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
     5765                { $as_echo "$as_me:$LINENO: checking for CoreFoundation.framework" >&5
    53325766$as_echo_n "checking for CoreFoundation.framework... " >&6; }
    5333 if ${tcl_cv_lib_corefoundation+:} false; then :
     5767if test "${tcl_cv_lib_corefoundation+set}" = set; then
    53345768  $as_echo_n "(cached) " >&6
    53355769else
     
    53435777                    done; fi
    53445778                    LIBS="$LIBS -framework CoreFoundation"
    5345                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5779                    cat >conftest.$ac_ext <<_ACEOF
     5780/* confdefs.h.  */
     5781_ACEOF
     5782cat confdefs.h >>conftest.$ac_ext
     5783cat >>conftest.$ac_ext <<_ACEOF
    53465784/* end confdefs.h.  */
    53475785#include <CoreFoundation/CoreFoundation.h>
     
    53545792}
    53555793_ACEOF
    5356 if ac_fn_c_try_link "$LINENO"; then :
     5794rm -f conftest.$ac_objext conftest$ac_exeext
     5795if { (ac_try="$ac_link"
     5796case "(($ac_try" in
     5797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5798  *) ac_try_echo=$ac_try;;
     5799esac
     5800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5801$as_echo "$ac_try_echo") >&5
     5802  (eval "$ac_link") 2>conftest.er1
     5803  ac_status=$?
     5804  grep -v '^ *+' conftest.er1 >conftest.err
     5805  rm -f conftest.er1
     5806  cat conftest.err >&5
     5807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5808  (exit $ac_status); } && {
     5809         test -z "$ac_c_werror_flag" ||
     5810         test ! -s conftest.err
     5811       } && test -s conftest$ac_exeext && {
     5812         test "$cross_compiling" = yes ||
     5813         $as_test_x conftest$ac_exeext
     5814       }; then
    53575815  tcl_cv_lib_corefoundation=yes
    53585816else
    5359   tcl_cv_lib_corefoundation=no
    5360 fi
    5361 rm -f core conftest.err conftest.$ac_objext \
    5362     conftest$ac_exeext conftest.$ac_ext
     5817  $as_echo "$as_me: failed program was:" >&5
     5818sed 's/^/| /' conftest.$ac_ext >&5
     5819
     5820        tcl_cv_lib_corefoundation=no
     5821fi
     5822
     5823rm -rf conftest.dSYM
     5824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5825      conftest$ac_exeext conftest.$ac_ext
    53635826                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
    53645827                        eval $v'="$hold_'$v'"'
    53655828                    done; fi; LIBS=$hold_libs
    53665829fi
    5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
     5830{ $as_echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation" >&5
    53685831$as_echo "$tcl_cv_lib_corefoundation" >&6; }
    53695832                if test $tcl_cv_lib_corefoundation = yes; then
    53705833                    LIBS="$LIBS -framework CoreFoundation"
    5371                     $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
     5834                    cat >>confdefs.h <<\_ACEOF
     5835#define HAVE_COREFOUNDATION 1
     5836_ACEOF
    53725837
    53735838                else
     
    53755840                fi
    53765841                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
    5377                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
     5842                    { $as_echo "$as_me:$LINENO: checking for 64-bit CoreFoundation" >&5
    53785843$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
    5379 if ${tcl_cv_lib_corefoundation_64+:} false; then :
     5844if test "${tcl_cv_lib_corefoundation_64+set}" = set; then
    53805845  $as_echo_n "(cached) " >&6
    53815846else
     
    53845849                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
    53855850                        done
    5386                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5851                        cat >conftest.$ac_ext <<_ACEOF
     5852/* confdefs.h.  */
     5853_ACEOF
     5854cat confdefs.h >>conftest.$ac_ext
     5855cat >>conftest.$ac_ext <<_ACEOF
    53875856/* end confdefs.h.  */
    53885857#include <CoreFoundation/CoreFoundation.h>
     
    53955864}
    53965865_ACEOF
    5397 if ac_fn_c_try_link "$LINENO"; then :
     5866rm -f conftest.$ac_objext conftest$ac_exeext
     5867if { (ac_try="$ac_link"
     5868case "(($ac_try" in
     5869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5870  *) ac_try_echo=$ac_try;;
     5871esac
     5872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5873$as_echo "$ac_try_echo") >&5
     5874  (eval "$ac_link") 2>conftest.er1
     5875  ac_status=$?
     5876  grep -v '^ *+' conftest.er1 >conftest.err
     5877  rm -f conftest.er1
     5878  cat conftest.err >&5
     5879  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5880  (exit $ac_status); } && {
     5881         test -z "$ac_c_werror_flag" ||
     5882         test ! -s conftest.err
     5883       } && test -s conftest$ac_exeext && {
     5884         test "$cross_compiling" = yes ||
     5885         $as_test_x conftest$ac_exeext
     5886       }; then
    53985887  tcl_cv_lib_corefoundation_64=yes
    53995888else
    5400   tcl_cv_lib_corefoundation_64=no
    5401 fi
    5402 rm -f core conftest.err conftest.$ac_objext \
    5403     conftest$ac_exeext conftest.$ac_ext
     5889  $as_echo "$as_me: failed program was:" >&5
     5890sed 's/^/| /' conftest.$ac_ext >&5
     5891
     5892        tcl_cv_lib_corefoundation_64=no
     5893fi
     5894
     5895rm -rf conftest.dSYM
     5896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5897      conftest$ac_exeext conftest.$ac_ext
    54045898                        for v in CFLAGS CPPFLAGS LDFLAGS; do
    54055899                            eval $v'="$hold_'$v'"'
    54065900                        done
    54075901fi
    5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
     5902{ $as_echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation_64" >&5
    54095903$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
    54105904                    if test $tcl_cv_lib_corefoundation_64 = no; then
    5411                         $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
     5905                        cat >>confdefs.h <<\_ACEOF
     5906#define NO_COREFOUNDATION_64 1
     5907_ACEOF
    54125908
    54135909                    fi
    54145910                fi
    54155911            fi
    5416             $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
     5912            cat >>confdefs.h <<\_ACEOF
     5913#define MAC_OSX_TCL 1
     5914_ACEOF
    54175915
    54185916            ;;
     
    54295927        OS/390-*)
    54305928            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
    5431             $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
     5929            cat >>confdefs.h <<\_ACEOF
     5930#define _OE_SOCKETS 1
     5931_ACEOF
    54325932        # needed in sys/socket.h
    54335933            ;;
     
    55706070            # won't define thread-safe library routines.
    55716071
    5572             $as_echo "#define _REENTRANT 1" >>confdefs.h
    5573 
    5574             $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     6072            cat >>confdefs.h <<\_ACEOF
     6073#define _REENTRANT 1
     6074_ACEOF
     6075
     6076            cat >>confdefs.h <<\_ACEOF
     6077#define _POSIX_PTHREAD_SEMANTICS 1
     6078_ACEOF
    55756079
    55766080
     
    55986102            # won't define thread-safe library routines.
    55996103
    5600             $as_echo "#define _REENTRANT 1" >>confdefs.h
    5601 
    5602             $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     6104            cat >>confdefs.h <<\_ACEOF
     6105#define _REENTRANT 1
     6106_ACEOF
     6107
     6108            cat >>confdefs.h <<\_ACEOF
     6109#define _POSIX_PTHREAD_SEMANTICS 1
     6110_ACEOF
    56036111
    56046112
     
    56116119                        if test "$GCC" = "yes" ; then
    56126120                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
    5613                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
     6121                                { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
    56146122$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
    56156123                            else
     
    56336141                elif test "$arch" = "amd64 i386" ; then
    56346142                    if test "$GCC" = "yes" ; then
    5635                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     6143                        { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
    56366144$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    56376145                    else
     
    56416149                    fi
    56426150                else
    5643                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
     6151                    { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5
    56446152$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
    56456153                fi
     
    57006208            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
    57016209            # that don't grok the -Bexport option.  Test that it does.
    5702             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
     6210            { $as_echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5
    57036211$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
    5704 if ${tcl_cv_ld_Bexport+:} false; then :
     6212if test "${tcl_cv_ld_Bexport+set}" = set; then
    57056213  $as_echo_n "(cached) " >&6
    57066214else
     
    57086216                hold_ldflags=$LDFLAGS
    57096217                LDFLAGS="$LDFLAGS -Wl,-Bexport"
    5710                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6218                cat >conftest.$ac_ext <<_ACEOF
     6219/* confdefs.h.  */
     6220_ACEOF
     6221cat confdefs.h >>conftest.$ac_ext
     6222cat >>conftest.$ac_ext <<_ACEOF
    57116223/* end confdefs.h.  */
    57126224
     
    57196231}
    57206232_ACEOF
    5721 if ac_fn_c_try_link "$LINENO"; then :
     6233rm -f conftest.$ac_objext conftest$ac_exeext
     6234if { (ac_try="$ac_link"
     6235case "(($ac_try" in
     6236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6237  *) ac_try_echo=$ac_try;;
     6238esac
     6239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     6240$as_echo "$ac_try_echo") >&5
     6241  (eval "$ac_link") 2>conftest.er1
     6242  ac_status=$?
     6243  grep -v '^ *+' conftest.er1 >conftest.err
     6244  rm -f conftest.er1
     6245  cat conftest.err >&5
     6246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6247  (exit $ac_status); } && {
     6248         test -z "$ac_c_werror_flag" ||
     6249         test ! -s conftest.err
     6250       } && test -s conftest$ac_exeext && {
     6251         test "$cross_compiling" = yes ||
     6252         $as_test_x conftest$ac_exeext
     6253       }; then
    57226254  tcl_cv_ld_Bexport=yes
    57236255else
    5724   tcl_cv_ld_Bexport=no
    5725 fi
    5726 rm -f core conftest.err conftest.$ac_objext \
    5727     conftest$ac_exeext conftest.$ac_ext
     6256  $as_echo "$as_me: failed program was:" >&5
     6257sed 's/^/| /' conftest.$ac_ext >&5
     6258
     6259        tcl_cv_ld_Bexport=no
     6260fi
     6261
     6262rm -rf conftest.dSYM
     6263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     6264      conftest$ac_exeext conftest.$ac_ext
    57286265                LDFLAGS=$hold_ldflags
    57296266fi
    5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
     6267{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5
    57316268$as_echo "$tcl_cv_ld_Bexport" >&6; }
    57326269            if test $tcl_cv_ld_Bexport = yes; then
     
    57396276
    57406277    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
    5741         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
     6278        { $as_echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
    57426279$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
    57436280    fi
     
    57666303
    57676304    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
    5768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
     6305        { $as_echo "$as_me:$LINENO: checking sys/exec.h" >&5
    57696306$as_echo_n "checking sys/exec.h... " >&6; }
    5770 if ${tcl_cv_sysexec_h+:} false; then :
     6307if test "${tcl_cv_sysexec_h+set}" = set; then
    57716308  $as_echo_n "(cached) " >&6
    57726309else
    57736310
    5774         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6311        cat >conftest.$ac_ext <<_ACEOF
     6312/* confdefs.h.  */
     6313_ACEOF
     6314cat confdefs.h >>conftest.$ac_ext
     6315cat >>conftest.$ac_ext <<_ACEOF
    57756316/* end confdefs.h.  */
    57766317#include <sys/exec.h>
     
    57946335}
    57956336_ACEOF
    5796 if ac_fn_c_try_compile "$LINENO"; then :
     6337rm -f conftest.$ac_objext
     6338if { (ac_try="$ac_compile"
     6339case "(($ac_try" in
     6340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6341  *) ac_try_echo=$ac_try;;
     6342esac
     6343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     6344$as_echo "$ac_try_echo") >&5
     6345  (eval "$ac_compile") 2>conftest.er1
     6346  ac_status=$?
     6347  grep -v '^ *+' conftest.er1 >conftest.err
     6348  rm -f conftest.er1
     6349  cat conftest.err >&5
     6350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6351  (exit $ac_status); } && {
     6352         test -z "$ac_c_werror_flag" ||
     6353         test ! -s conftest.err
     6354       } && test -s conftest.$ac_objext; then
    57976355  tcl_cv_sysexec_h=usable
    57986356else
    5799   tcl_cv_sysexec_h=unusable
    5800 fi
     6357  $as_echo "$as_me: failed program was:" >&5
     6358sed 's/^/| /' conftest.$ac_ext >&5
     6359
     6360        tcl_cv_sysexec_h=unusable
     6361fi
     6362
    58016363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    58026364fi
    5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
     6365{ $as_echo "$as_me:$LINENO: result: $tcl_cv_sysexec_h" >&5
    58046366$as_echo "$tcl_cv_sysexec_h" >&6; }
    58056367        if test $tcl_cv_sysexec_h = usable; then
    5806             $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
     6368            cat >>confdefs.h <<\_ACEOF
     6369#define USE_SYS_EXEC_H 1
     6370_ACEOF
    58076371
    58086372        else
    5809             { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
     6373            { $as_echo "$as_me:$LINENO: checking a.out.h" >&5
    58106374$as_echo_n "checking a.out.h... " >&6; }
    5811 if ${tcl_cv_aout_h+:} false; then :
     6375if test "${tcl_cv_aout_h+set}" = set; then
    58126376  $as_echo_n "(cached) " >&6
    58136377else
    58146378
    5815             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6379            cat >conftest.$ac_ext <<_ACEOF
     6380/* confdefs.h.  */
     6381_ACEOF
     6382cat confdefs.h >>conftest.$ac_ext
     6383cat >>conftest.$ac_ext <<_ACEOF
    58166384/* end confdefs.h.  */
    58176385#include <a.out.h>
     
    58356403}
    58366404_ACEOF
    5837 if ac_fn_c_try_compile "$LINENO"; then :
     6405rm -f conftest.$ac_objext
     6406if { (ac_try="$ac_compile"
     6407case "(($ac_try" in
     6408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6409  *) ac_try_echo=$ac_try;;
     6410esac
     6411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     6412$as_echo "$ac_try_echo") >&5
     6413  (eval "$ac_compile") 2>conftest.er1
     6414  ac_status=$?
     6415  grep -v '^ *+' conftest.er1 >conftest.err
     6416  rm -f conftest.er1
     6417  cat conftest.err >&5
     6418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6419  (exit $ac_status); } && {
     6420         test -z "$ac_c_werror_flag" ||
     6421         test ! -s conftest.err
     6422       } && test -s conftest.$ac_objext; then
    58386423  tcl_cv_aout_h=usable
    58396424else
    5840   tcl_cv_aout_h=unusable
    5841 fi
     6425  $as_echo "$as_me: failed program was:" >&5
     6426sed 's/^/| /' conftest.$ac_ext >&5
     6427
     6428        tcl_cv_aout_h=unusable
     6429fi
     6430
    58426431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    58436432fi
    5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
     6433{ $as_echo "$as_me:$LINENO: result: $tcl_cv_aout_h" >&5
    58456434$as_echo "$tcl_cv_aout_h" >&6; }
    58466435            if test $tcl_cv_aout_h = usable; then
    5847                 $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
     6436                cat >>confdefs.h <<\_ACEOF
     6437#define USE_A_OUT_H 1
     6438_ACEOF
    58486439
    58496440            else
    5850                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
     6441                { $as_echo "$as_me:$LINENO: checking sys/exec_aout.h" >&5
    58516442$as_echo_n "checking sys/exec_aout.h... " >&6; }
    5852 if ${tcl_cv_sysexecaout_h+:} false; then :
     6443if test "${tcl_cv_sysexecaout_h+set}" = set; then
    58536444  $as_echo_n "(cached) " >&6
    58546445else
    58556446
    5856                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6447                cat >conftest.$ac_ext <<_ACEOF
     6448/* confdefs.h.  */
     6449_ACEOF
     6450cat confdefs.h >>conftest.$ac_ext
     6451cat >>conftest.$ac_ext <<_ACEOF
    58576452/* end confdefs.h.  */
    58586453#include <sys/exec_aout.h>
     
    58766471}
    58776472_ACEOF
    5878 if ac_fn_c_try_compile "$LINENO"; then :
     6473rm -f conftest.$ac_objext
     6474if { (ac_try="$ac_compile"
     6475case "(($ac_try" in
     6476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6477  *) ac_try_echo=$ac_try;;
     6478esac
     6479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     6480$as_echo "$ac_try_echo") >&5
     6481  (eval "$ac_compile") 2>conftest.er1
     6482  ac_status=$?
     6483  grep -v '^ *+' conftest.er1 >conftest.err
     6484  rm -f conftest.er1
     6485  cat conftest.err >&5
     6486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6487  (exit $ac_status); } && {
     6488         test -z "$ac_c_werror_flag" ||
     6489         test ! -s conftest.err
     6490       } && test -s conftest.$ac_objext; then
    58796491  tcl_cv_sysexecaout_h=usable
    58806492else
    5881   tcl_cv_sysexecaout_h=unusable
    5882 fi
     6493  $as_echo "$as_me: failed program was:" >&5
     6494sed 's/^/| /' conftest.$ac_ext >&5
     6495
     6496        tcl_cv_sysexecaout_h=unusable
     6497fi
     6498
    58836499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    58846500fi
    5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
     6501{ $as_echo "$as_me:$LINENO: result: $tcl_cv_sysexecaout_h" >&5
    58866502$as_echo "$tcl_cv_sysexecaout_h" >&6; }
    58876503                if test $tcl_cv_sysexecaout_h = usable; then
    5888                     $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
     6504                    cat >>confdefs.h <<\_ACEOF
     6505#define USE_SYS_EXEC_AOUT_H 1
     6506_ACEOF
    58896507
    58906508                else
     
    58986516
    58996517    # Check whether --enable-load was given.
    5900 if test "${enable_load+set}" = set; then :
     6518if test "${enable_load+set}" = set; then
    59016519  enableval=$enable_load; tcl_ok=$enableval
    59026520else
     
    60216639
    60226640
    6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
     6641{ $as_echo "$as_me:$LINENO: checking for X" >&5
    60246642$as_echo_n "checking for X... " >&6; }
    60256643
    60266644
    60276645# Check whether --with-x was given.
    6028 if test "${with_x+set}" = set; then :
     6646if test "${with_x+set}" = set; then
    60296647  withval=$with_x;
    60306648fi
     
    60366654else
    60376655  case $x_includes,$x_libraries in #(
    6038     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
    6039     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
     6656    *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
     6657$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
     6658   { (exit 1); exit 1; }; };; #(
     6659    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
    60406660  $as_echo_n "(cached) " >&6
    60416661else
     
    60546674_ACEOF
    60556675  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
    6056     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     6676    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    60576677    for ac_var in incroot usrlibdir libdir; do
    60586678      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
     
    60856705ac_x_header_dirs='
    60866706/usr/X11/include
    6087 /usr/X11R7/include
    60886707/usr/X11R6/include
    60896708/usr/X11R5/include
     
    60916710
    60926711/usr/include/X11
    6093 /usr/include/X11R7
    60946712/usr/include/X11R6
    60956713/usr/include/X11R5
     
    60976715
    60986716/usr/local/X11/include
    6099 /usr/local/X11R7/include
    61006717/usr/local/X11R6/include
    61016718/usr/local/X11R5/include
     
    61036720
    61046721/usr/local/include/X11
    6105 /usr/local/include/X11R7
    61066722/usr/local/include/X11R6
    61076723/usr/local/include/X11R5
     
    61256741  # Guess where to find include files, by looking for Xlib.h.
    61266742  # First, try using that file with no special directory specified.
    6127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6743  cat >conftest.$ac_ext <<_ACEOF
     6744/* confdefs.h.  */
     6745_ACEOF
     6746cat confdefs.h >>conftest.$ac_ext
     6747cat >>conftest.$ac_ext <<_ACEOF
    61286748/* end confdefs.h.  */
    61296749#include <X11/Xlib.h>
    61306750_ACEOF
    6131 if ac_fn_c_try_cpp "$LINENO"; then :
     6751if { (ac_try="$ac_cpp conftest.$ac_ext"
     6752case "(($ac_try" in
     6753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6754  *) ac_try_echo=$ac_try;;
     6755esac
     6756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     6757$as_echo "$ac_try_echo") >&5
     6758  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     6759  ac_status=$?
     6760  grep -v '^ *+' conftest.er1 >conftest.err
     6761  rm -f conftest.er1
     6762  cat conftest.err >&5
     6763  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6764  (exit $ac_status); } >/dev/null && {
     6765         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     6766         test ! -s conftest.err
     6767       }; then
    61326768  # We can compile using X headers with no special include directory.
    61336769ac_x_includes=
    61346770else
     6771  $as_echo "$as_me: failed program was:" >&5
     6772sed 's/^/| /' conftest.$ac_ext >&5
     6773
    61356774  for ac_dir in $ac_x_header_dirs; do
    61366775  if test -r "$ac_dir/X11/Xlib.h"; then
     
    61406779done
    61416780fi
    6142 rm -f conftest.err conftest.i conftest.$ac_ext
     6781
     6782rm -f conftest.err conftest.$ac_ext
    61436783fi # $ac_x_includes = no
    61446784
     
    61496789  ac_save_LIBS=$LIBS
    61506790  LIBS="-lX11 $LIBS"
    6151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6791  cat >conftest.$ac_ext <<_ACEOF
     6792/* confdefs.h.  */
     6793_ACEOF
     6794cat confdefs.h >>conftest.$ac_ext
     6795cat >>conftest.$ac_ext <<_ACEOF
    61526796/* end confdefs.h.  */
    61536797#include <X11/Xlib.h>
     
    61606804}
    61616805_ACEOF
    6162 if ac_fn_c_try_link "$LINENO"; then :
     6806rm -f conftest.$ac_objext conftest$ac_exeext
     6807if { (ac_try="$ac_link"
     6808case "(($ac_try" in
     6809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6810  *) ac_try_echo=$ac_try;;
     6811esac
     6812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     6813$as_echo "$ac_try_echo") >&5
     6814  (eval "$ac_link") 2>conftest.er1
     6815  ac_status=$?
     6816  grep -v '^ *+' conftest.er1 >conftest.err
     6817  rm -f conftest.er1
     6818  cat conftest.err >&5
     6819  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6820  (exit $ac_status); } && {
     6821         test -z "$ac_c_werror_flag" ||
     6822         test ! -s conftest.err
     6823       } && test -s conftest$ac_exeext && {
     6824         test "$cross_compiling" = yes ||
     6825         $as_test_x conftest$ac_exeext
     6826       }; then
    61636827  LIBS=$ac_save_LIBS
    61646828# We can link X programs with no special library path.
    61656829ac_x_libraries=
    61666830else
    6167   LIBS=$ac_save_LIBS
     6831  $as_echo "$as_me: failed program was:" >&5
     6832sed 's/^/| /' conftest.$ac_ext >&5
     6833
     6834        LIBS=$ac_save_LIBS
    61686835for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
    61696836do
     
    61776844done
    61786845fi
    6179 rm -f core conftest.err conftest.$ac_objext \
    6180     conftest$ac_exeext conftest.$ac_ext
     6846
     6847rm -rf conftest.dSYM
     6848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     6849      conftest$ac_exeext conftest.$ac_ext
    61816850fi # $ac_x_libraries = no
    61826851
     
    61996868
    62006869if test "$have_x" != yes; then
    6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
     6870  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
    62026871$as_echo "$have_x" >&6; }
    62036872  no_x=yes
     
    62106879        ac_x_includes='$x_includes'\
    62116880        ac_x_libraries='$x_libraries'"
    6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
     6881  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
    62136882$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
    62146883fi
     
    62296898# ./install, which can be erroneously created by make from ./install.sh.
    62306899# Reject install programs that cannot install multiple files.
    6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
     6900{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    62326901$as_echo_n "checking for a BSD-compatible install... " >&6; }
    62336902if test -z "$INSTALL"; then
    6234 if ${ac_cv_path_install+:} false; then :
     6903if test "${ac_cv_path_install+set}" = set; then
    62356904  $as_echo_n "(cached) " >&6
    62366905else
     
    62406909  IFS=$as_save_IFS
    62416910  test -z "$as_dir" && as_dir=.
    6242     # Account for people who put trailing slashes in PATH elements.
    6243 case $as_dir/ in #((
    6244   ./ | .// | /[cC]/* | \
     6911  # Account for people who put trailing slashes in PATH elements.
     6912case $as_dir/ in
     6913  ./ | .// | /cC/* | \
    62456914  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    6246   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
     6915  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    62476916  /usr/ucb/* ) ;;
    62486917  *)
     
    62526921    for ac_prog in ginstall scoinst install; do
    62536922      for ac_exec_ext in '' $ac_executable_extensions; do
    6254         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     6923        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
    62556924          if test $ac_prog = install &&
    62566925            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    62816950esac
    62826951
    6283   done
     6952done
    62846953IFS=$as_save_IFS
    62856954
     
    62976966  fi
    62986967fi
    6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
     6968{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
    63006969$as_echo "$INSTALL" >&6; }
    63016970
     
    63116980  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    63126981set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     6982{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    63146983$as_echo_n "checking for $ac_word... " >&6; }
    6315 if ${ac_cv_prog_RANLIB+:} false; then :
     6984if test "${ac_cv_prog_RANLIB+set}" = set; then
    63166985  $as_echo_n "(cached) " >&6
    63176986else
     
    63246993  IFS=$as_save_IFS
    63256994  test -z "$as_dir" && as_dir=.
    6326     for ac_exec_ext in '' $ac_executable_extensions; do
    6327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6995  for ac_exec_ext in '' $ac_executable_extensions; do
     6996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    63286997    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    6329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     6998    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    63306999    break 2
    63317000  fi
    63327001done
    6333   done
     7002done
    63347003IFS=$as_save_IFS
    63357004
     
    63387007RANLIB=$ac_cv_prog_RANLIB
    63397008if test -n "$RANLIB"; then
    6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     7009  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
    63417010$as_echo "$RANLIB" >&6; }
    63427011else
    6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7012  { $as_echo "$as_me:$LINENO: result: no" >&5
    63447013$as_echo "no" >&6; }
    63457014fi
     
    63517020  # Extract the first word of "ranlib", so it can be a program name with args.
    63527021set dummy ranlib; ac_word=$2
    6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7022{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    63547023$as_echo_n "checking for $ac_word... " >&6; }
    6355 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
     7024if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    63567025  $as_echo_n "(cached) " >&6
    63577026else
     
    63647033  IFS=$as_save_IFS
    63657034  test -z "$as_dir" && as_dir=.
    6366     for ac_exec_ext in '' $ac_executable_extensions; do
    6367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7035  for ac_exec_ext in '' $ac_executable_extensions; do
     7036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    63687037    ac_cv_prog_ac_ct_RANLIB="ranlib"
    6369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7038    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    63707039    break 2
    63717040  fi
    63727041done
    6373   done
     7042done
    63747043IFS=$as_save_IFS
    63757044
     
    63787047ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    63797048if test -n "$ac_ct_RANLIB"; then
    6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     7049  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    63817050$as_echo "$ac_ct_RANLIB" >&6; }
    63827051else
    6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7052  { $as_echo "$as_me:$LINENO: result: no" >&5
    63847053$as_echo "no" >&6; }
    63857054fi
     
    63907059    case $cross_compiling:$ac_tool_warned in
    63917060yes:)
    6392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     7061{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    63937062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    63947063ac_tool_warned=yes ;;
     
    64007069fi
    64017070
    6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
     7071{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
    64037072$as_echo_n "checking whether ln -s works... " >&6; }
    64047073LN_S=$as_ln_s
    64057074if test "$LN_S" = "ln -s"; then
    6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     7075  { $as_echo "$as_me:$LINENO: result: yes" >&5
    64077076$as_echo "yes" >&6; }
    64087077else
    6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
     7078  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    64107079$as_echo "no, using $LN_S" >&6; }
    64117080fi
    64127081
    6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
     7082{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
    64147083$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
    64157084if test -z "$MKDIR_P"; then
    6416   if ${ac_cv_path_mkdir+:} false; then :
     7085  if test "${ac_cv_path_mkdir+set}" = set; then
    64177086  $as_echo_n "(cached) " >&6
    64187087else
     
    64227091  IFS=$as_save_IFS
    64237092  test -z "$as_dir" && as_dir=.
    6424     for ac_prog in mkdir gmkdir; do
     7093  for ac_prog in mkdir gmkdir; do
    64257094         for ac_exec_ext in '' $ac_executable_extensions; do
    6426            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
     7095           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
    64277096           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
    64287097             'mkdir (GNU coreutils) '* | \
     
    64347103         done
    64357104       done
    6436   done
     7105done
    64377106IFS=$as_save_IFS
    64387107
    64397108fi
    64407109
    6441   test -d ./--version && rmdir ./--version
    64427110  if test "${ac_cv_path_mkdir+set}" = set; then
    64437111    MKDIR_P="$ac_cv_path_mkdir -p"
     
    64477115    # break other packages using the cache if that directory is
    64487116    # removed, or if the value is a relative name.
     7117    test -d ./--version && rmdir ./--version
    64497118    MKDIR_P="$ac_install_sh -d"
    64507119  fi
    64517120fi
    6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
     7121{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
    64537122$as_echo "$MKDIR_P" >&6; }
    64547123
     
    64627131  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    64637132set dummy ${ac_tool_prefix}gcc; ac_word=$2
    6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    64657134$as_echo_n "checking for $ac_word... " >&6; }
    6466 if ${ac_cv_prog_CC+:} false; then :
     7135if test "${ac_cv_prog_CC+set}" = set; then
    64677136  $as_echo_n "(cached) " >&6
    64687137else
     
    64757144  IFS=$as_save_IFS
    64767145  test -z "$as_dir" && as_dir=.
    6477     for ac_exec_ext in '' $ac_executable_extensions; do
    6478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7146  for ac_exec_ext in '' $ac_executable_extensions; do
     7147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    64797148    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    6480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7149    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    64817150    break 2
    64827151  fi
    64837152done
    6484   done
     7153done
    64857154IFS=$as_save_IFS
    64867155
     
    64897158CC=$ac_cv_prog_CC
    64907159if test -n "$CC"; then
    6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     7160  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    64927161$as_echo "$CC" >&6; }
    64937162else
    6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7163  { $as_echo "$as_me:$LINENO: result: no" >&5
    64957164$as_echo "no" >&6; }
    64967165fi
     
    65027171  # Extract the first word of "gcc", so it can be a program name with args.
    65037172set dummy gcc; ac_word=$2
    6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7173{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    65057174$as_echo_n "checking for $ac_word... " >&6; }
    6506 if ${ac_cv_prog_ac_ct_CC+:} false; then :
     7175if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    65077176  $as_echo_n "(cached) " >&6
    65087177else
     
    65157184  IFS=$as_save_IFS
    65167185  test -z "$as_dir" && as_dir=.
    6517     for ac_exec_ext in '' $ac_executable_extensions; do
    6518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7186  for ac_exec_ext in '' $ac_executable_extensions; do
     7187  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    65197188    ac_cv_prog_ac_ct_CC="gcc"
    6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7189    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    65217190    break 2
    65227191  fi
    65237192done
    6524   done
     7193done
    65257194IFS=$as_save_IFS
    65267195
     
    65297198ac_ct_CC=$ac_cv_prog_ac_ct_CC
    65307199if test -n "$ac_ct_CC"; then
    6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     7200  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    65327201$as_echo "$ac_ct_CC" >&6; }
    65337202else
    6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7203  { $as_echo "$as_me:$LINENO: result: no" >&5
    65357204$as_echo "no" >&6; }
    65367205fi
     
    65417210    case $cross_compiling:$ac_tool_warned in
    65427211yes:)
    6543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     7212{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    65447213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    65457214ac_tool_warned=yes ;;
     
    65557224    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    65567225set dummy ${ac_tool_prefix}cc; ac_word=$2
    6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    65587227$as_echo_n "checking for $ac_word... " >&6; }
    6559 if ${ac_cv_prog_CC+:} false; then :
     7228if test "${ac_cv_prog_CC+set}" = set; then
    65607229  $as_echo_n "(cached) " >&6
    65617230else
     
    65687237  IFS=$as_save_IFS
    65697238  test -z "$as_dir" && as_dir=.
    6570     for ac_exec_ext in '' $ac_executable_extensions; do
    6571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7239  for ac_exec_ext in '' $ac_executable_extensions; do
     7240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    65727241    ac_cv_prog_CC="${ac_tool_prefix}cc"
    6573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7242    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    65747243    break 2
    65757244  fi
    65767245done
    6577   done
     7246done
    65787247IFS=$as_save_IFS
    65797248
     
    65827251CC=$ac_cv_prog_CC
    65837252if test -n "$CC"; then
    6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     7253  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    65857254$as_echo "$CC" >&6; }
    65867255else
    6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7256  { $as_echo "$as_me:$LINENO: result: no" >&5
    65887257$as_echo "no" >&6; }
    65897258fi
     
    65957264  # Extract the first word of "cc", so it can be a program name with args.
    65967265set dummy cc; ac_word=$2
    6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7266{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    65987267$as_echo_n "checking for $ac_word... " >&6; }
    6599 if ${ac_cv_prog_CC+:} false; then :
     7268if test "${ac_cv_prog_CC+set}" = set; then
    66007269  $as_echo_n "(cached) " >&6
    66017270else
     
    66097278  IFS=$as_save_IFS
    66107279  test -z "$as_dir" && as_dir=.
    6611     for ac_exec_ext in '' $ac_executable_extensions; do
    6612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7280  for ac_exec_ext in '' $ac_executable_extensions; do
     7281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    66137282    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    66147283       ac_prog_rejected=yes
     
    66167285     fi
    66177286    ac_cv_prog_CC="cc"
    6618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7287    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    66197288    break 2
    66207289  fi
    66217290done
    6622   done
     7291done
    66237292IFS=$as_save_IFS
    66247293
     
    66397308CC=$ac_cv_prog_CC
    66407309if test -n "$CC"; then
    6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     7310  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    66427311$as_echo "$CC" >&6; }
    66437312else
    6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7313  { $as_echo "$as_me:$LINENO: result: no" >&5
    66457314$as_echo "no" >&6; }
    66467315fi
     
    66547323    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    66557324set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    66577326$as_echo_n "checking for $ac_word... " >&6; }
    6658 if ${ac_cv_prog_CC+:} false; then :
     7327if test "${ac_cv_prog_CC+set}" = set; then
    66597328  $as_echo_n "(cached) " >&6
    66607329else
     
    66677336  IFS=$as_save_IFS
    66687337  test -z "$as_dir" && as_dir=.
    6669     for ac_exec_ext in '' $ac_executable_extensions; do
    6670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7338  for ac_exec_ext in '' $ac_executable_extensions; do
     7339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    66717340    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7341    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    66737342    break 2
    66747343  fi
    66757344done
    6676   done
     7345done
    66777346IFS=$as_save_IFS
    66787347
     
    66817350CC=$ac_cv_prog_CC
    66827351if test -n "$CC"; then
    6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     7352  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    66847353$as_echo "$CC" >&6; }
    66857354else
    6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7355  { $as_echo "$as_me:$LINENO: result: no" >&5
    66877356$as_echo "no" >&6; }
    66887357fi
     
    66987367  # Extract the first word of "$ac_prog", so it can be a program name with args.
    66997368set dummy $ac_prog; ac_word=$2
    6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7369{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    67017370$as_echo_n "checking for $ac_word... " >&6; }
    6702 if ${ac_cv_prog_ac_ct_CC+:} false; then :
     7371if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    67037372  $as_echo_n "(cached) " >&6
    67047373else
     
    67117380  IFS=$as_save_IFS
    67127381  test -z "$as_dir" && as_dir=.
    6713     for ac_exec_ext in '' $ac_executable_extensions; do
    6714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7382  for ac_exec_ext in '' $ac_executable_extensions; do
     7383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    67157384    ac_cv_prog_ac_ct_CC="$ac_prog"
    6716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7385    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    67177386    break 2
    67187387  fi
    67197388done
    6720   done
     7389done
    67217390IFS=$as_save_IFS
    67227391
     
    67257394ac_ct_CC=$ac_cv_prog_ac_ct_CC
    67267395if test -n "$ac_ct_CC"; then
    6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     7396  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    67287397$as_echo "$ac_ct_CC" >&6; }
    67297398else
    6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7399  { $as_echo "$as_me:$LINENO: result: no" >&5
    67317400$as_echo "no" >&6; }
    67327401fi
     
    67417410    case $cross_compiling:$ac_tool_warned in
    67427411yes:)
    6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     7412{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    67447413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    67457414ac_tool_warned=yes ;;
     
    67527421
    67537422
    6754 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     7423test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    67557424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    6756 as_fn_error $? "no acceptable C compiler found in \$PATH
    6757 See \`config.log' for more details" "$LINENO" 5; }
     7425{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     7426See \`config.log' for more details." >&5
     7427$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
     7428See \`config.log' for more details." >&2;}
     7429   { (exit 1); exit 1; }; }; }
    67587430
    67597431# Provide some information about the compiler.
    6760 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     7432$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
    67617433set X $ac_compile
    67627434ac_compiler=$2
    6763 for ac_option in --version -v -V -qversion; do
    6764   { { ac_try="$ac_compiler $ac_option >&5"
     7435{ (ac_try="$ac_compiler --version >&5"
    67657436case "(($ac_try" in
    67667437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    67677438  *) ac_try_echo=$ac_try;;
    67687439esac
    6769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    6770 $as_echo "$ac_try_echo"; } >&5
    6771   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
     7440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7441$as_echo "$ac_try_echo") >&5
     7442  (eval "$ac_compiler --version >&5") 2>&5
    67727443  ac_status=$?
    6773   if test -s conftest.err; then
    6774     sed '10a\
    6775 ... rest of stderr output deleted ...
    6776          10q' conftest.err >conftest.er1
    6777     cat conftest.er1 >&5
    6778   fi
    6779   rm -f conftest.er1 conftest.err
    6780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    6781   test $ac_status = 0; }
    6782 done
    6783 
    6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     7444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7445  (exit $ac_status); }
     7446{ (ac_try="$ac_compiler -v >&5"
     7447case "(($ac_try" in
     7448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7449  *) ac_try_echo=$ac_try;;
     7450esac
     7451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7452$as_echo "$ac_try_echo") >&5
     7453  (eval "$ac_compiler -v >&5") 2>&5
     7454  ac_status=$?
     7455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7456  (exit $ac_status); }
     7457{ (ac_try="$ac_compiler -V >&5"
     7458case "(($ac_try" in
     7459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7460  *) ac_try_echo=$ac_try;;
     7461esac
     7462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7463$as_echo "$ac_try_echo") >&5
     7464  (eval "$ac_compiler -V >&5") 2>&5
     7465  ac_status=$?
     7466  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7467  (exit $ac_status); }
     7468
     7469{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    67857470$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    6786 if ${ac_cv_c_compiler_gnu+:} false; then :
     7471if test "${ac_cv_c_compiler_gnu+set}" = set; then
    67877472  $as_echo_n "(cached) " >&6
    67887473else
    6789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7474  cat >conftest.$ac_ext <<_ACEOF
     7475/* confdefs.h.  */
     7476_ACEOF
     7477cat confdefs.h >>conftest.$ac_ext
     7478cat >>conftest.$ac_ext <<_ACEOF
    67907479/* end confdefs.h.  */
    67917480
     
    68017490}
    68027491_ACEOF
    6803 if ac_fn_c_try_compile "$LINENO"; then :
     7492rm -f conftest.$ac_objext
     7493if { (ac_try="$ac_compile"
     7494case "(($ac_try" in
     7495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7496  *) ac_try_echo=$ac_try;;
     7497esac
     7498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7499$as_echo "$ac_try_echo") >&5
     7500  (eval "$ac_compile") 2>conftest.er1
     7501  ac_status=$?
     7502  grep -v '^ *+' conftest.er1 >conftest.err
     7503  rm -f conftest.er1
     7504  cat conftest.err >&5
     7505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7506  (exit $ac_status); } && {
     7507         test -z "$ac_c_werror_flag" ||
     7508         test ! -s conftest.err
     7509       } && test -s conftest.$ac_objext; then
    68047510  ac_compiler_gnu=yes
    68057511else
    6806   ac_compiler_gnu=no
    6807 fi
     7512  $as_echo "$as_me: failed program was:" >&5
     7513sed 's/^/| /' conftest.$ac_ext >&5
     7514
     7515        ac_compiler_gnu=no
     7516fi
     7517
    68087518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    68097519ac_cv_c_compiler_gnu=$ac_compiler_gnu
    68107520
    68117521fi
    6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     7522{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    68137523$as_echo "$ac_cv_c_compiler_gnu" >&6; }
    68147524if test $ac_compiler_gnu = yes; then
     
    68197529ac_test_CFLAGS=${CFLAGS+set}
    68207530ac_save_CFLAGS=$CFLAGS
    6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     7531{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    68227532$as_echo_n "checking whether $CC accepts -g... " >&6; }
    6823 if ${ac_cv_prog_cc_g+:} false; then :
     7533if test "${ac_cv_prog_cc_g+set}" = set; then
    68247534  $as_echo_n "(cached) " >&6
    68257535else
     
    68287538   ac_cv_prog_cc_g=no
    68297539   CFLAGS="-g"
    6830    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7540   cat >conftest.$ac_ext <<_ACEOF
     7541/* confdefs.h.  */
     7542_ACEOF
     7543cat confdefs.h >>conftest.$ac_ext
     7544cat >>conftest.$ac_ext <<_ACEOF
    68317545/* end confdefs.h.  */
    68327546
     
    68397553}
    68407554_ACEOF
    6841 if ac_fn_c_try_compile "$LINENO"; then :
     7555rm -f conftest.$ac_objext
     7556if { (ac_try="$ac_compile"
     7557case "(($ac_try" in
     7558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7559  *) ac_try_echo=$ac_try;;
     7560esac
     7561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7562$as_echo "$ac_try_echo") >&5
     7563  (eval "$ac_compile") 2>conftest.er1
     7564  ac_status=$?
     7565  grep -v '^ *+' conftest.er1 >conftest.err
     7566  rm -f conftest.er1
     7567  cat conftest.err >&5
     7568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7569  (exit $ac_status); } && {
     7570         test -z "$ac_c_werror_flag" ||
     7571         test ! -s conftest.err
     7572       } && test -s conftest.$ac_objext; then
    68427573  ac_cv_prog_cc_g=yes
    68437574else
    6844   CFLAGS=""
    6845       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7575  $as_echo "$as_me: failed program was:" >&5
     7576sed 's/^/| /' conftest.$ac_ext >&5
     7577
     7578        CFLAGS=""
     7579      cat >conftest.$ac_ext <<_ACEOF
     7580/* confdefs.h.  */
     7581_ACEOF
     7582cat confdefs.h >>conftest.$ac_ext
     7583cat >>conftest.$ac_ext <<_ACEOF
    68467584/* end confdefs.h.  */
    68477585
     
    68547592}
    68557593_ACEOF
    6856 if ac_fn_c_try_compile "$LINENO"; then :
    6857 
    6858 else
    6859   ac_c_werror_flag=$ac_save_c_werror_flag
     7594rm -f conftest.$ac_objext
     7595if { (ac_try="$ac_compile"
     7596case "(($ac_try" in
     7597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7598  *) ac_try_echo=$ac_try;;
     7599esac
     7600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7601$as_echo "$ac_try_echo") >&5
     7602  (eval "$ac_compile") 2>conftest.er1
     7603  ac_status=$?
     7604  grep -v '^ *+' conftest.er1 >conftest.err
     7605  rm -f conftest.er1
     7606  cat conftest.err >&5
     7607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7608  (exit $ac_status); } && {
     7609         test -z "$ac_c_werror_flag" ||
     7610         test ! -s conftest.err
     7611       } && test -s conftest.$ac_objext; then
     7612  :
     7613else
     7614  $as_echo "$as_me: failed program was:" >&5
     7615sed 's/^/| /' conftest.$ac_ext >&5
     7616
     7617        ac_c_werror_flag=$ac_save_c_werror_flag
    68607618         CFLAGS="-g"
    6861          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7619         cat >conftest.$ac_ext <<_ACEOF
     7620/* confdefs.h.  */
     7621_ACEOF
     7622cat confdefs.h >>conftest.$ac_ext
     7623cat >>conftest.$ac_ext <<_ACEOF
    68627624/* end confdefs.h.  */
    68637625
     
    68707632}
    68717633_ACEOF
    6872 if ac_fn_c_try_compile "$LINENO"; then :
     7634rm -f conftest.$ac_objext
     7635if { (ac_try="$ac_compile"
     7636case "(($ac_try" in
     7637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7638  *) ac_try_echo=$ac_try;;
     7639esac
     7640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7641$as_echo "$ac_try_echo") >&5
     7642  (eval "$ac_compile") 2>conftest.er1
     7643  ac_status=$?
     7644  grep -v '^ *+' conftest.er1 >conftest.err
     7645  rm -f conftest.er1
     7646  cat conftest.err >&5
     7647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7648  (exit $ac_status); } && {
     7649         test -z "$ac_c_werror_flag" ||
     7650         test ! -s conftest.err
     7651       } && test -s conftest.$ac_objext; then
    68737652  ac_cv_prog_cc_g=yes
    6874 fi
     7653else
     7654  $as_echo "$as_me: failed program was:" >&5
     7655sed 's/^/| /' conftest.$ac_ext >&5
     7656
     7657
     7658fi
     7659
    68757660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    68767661fi
     7662
    68777663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    68787664fi
     7665
    68797666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    68807667   ac_c_werror_flag=$ac_save_c_werror_flag
    68817668fi
    6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     7669{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    68837670$as_echo "$ac_cv_prog_cc_g" >&6; }
    68847671if test "$ac_test_CFLAGS" = set; then
     
    68977684  fi
    68987685fi
    6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     7686{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
    69007687$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    6901 if ${ac_cv_prog_cc_c89+:} false; then :
     7688if test "${ac_cv_prog_cc_c89+set}" = set; then
    69027689  $as_echo_n "(cached) " >&6
    69037690else
    69047691  ac_cv_prog_cc_c89=no
    69057692ac_save_CC=$CC
    6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7693cat >conftest.$ac_ext <<_ACEOF
     7694/* confdefs.h.  */
     7695_ACEOF
     7696cat confdefs.h >>conftest.$ac_ext
     7697cat >>conftest.$ac_ext <<_ACEOF
    69077698/* end confdefs.h.  */
    69087699#include <stdarg.h>
    69097700#include <stdio.h>
    6910 struct stat;
     7701#include <sys/types.h>
     7702#include <sys/stat.h>
    69117703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    69127704struct buf { int x; };
     
    69607752do
    69617753  CC="$ac_save_CC $ac_arg"
    6962   if ac_fn_c_try_compile "$LINENO"; then :
     7754  rm -f conftest.$ac_objext
     7755if { (ac_try="$ac_compile"
     7756case "(($ac_try" in
     7757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7758  *) ac_try_echo=$ac_try;;
     7759esac
     7760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7761$as_echo "$ac_try_echo") >&5
     7762  (eval "$ac_compile") 2>conftest.er1
     7763  ac_status=$?
     7764  grep -v '^ *+' conftest.er1 >conftest.err
     7765  rm -f conftest.er1
     7766  cat conftest.err >&5
     7767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7768  (exit $ac_status); } && {
     7769         test -z "$ac_c_werror_flag" ||
     7770         test ! -s conftest.err
     7771       } && test -s conftest.$ac_objext; then
    69637772  ac_cv_prog_cc_c89=$ac_arg
    6964 fi
     7773else
     7774  $as_echo "$as_me: failed program was:" >&5
     7775sed 's/^/| /' conftest.$ac_ext >&5
     7776
     7777
     7778fi
     7779
    69657780rm -f core conftest.err conftest.$ac_objext
    69667781  test "x$ac_cv_prog_cc_c89" != "xno" && break
     
    69737788case "x$ac_cv_prog_cc_c89" in
    69747789  x)
    6975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     7790    { $as_echo "$as_me:$LINENO: result: none needed" >&5
    69767791$as_echo "none needed" >&6; } ;;
    69777792  xno)
    6978     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     7793    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
    69797794$as_echo "unsupported" >&6; } ;;
    69807795  *)
    69817796    CC="$CC $ac_cv_prog_cc_c89"
    6982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     7797    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
    69837798$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    69847799esac
    6985 if test "x$ac_cv_prog_cc_c89" != xno; then :
    6986 
    6987 fi
     7800
    69887801
    69897802ac_ext=c
     
    69987811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    69997812ac_compiler_gnu=$ac_cv_c_compiler_gnu
    7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     7813{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    70017814$as_echo_n "checking how to run the C preprocessor... " >&6; }
    70027815# On Suns, sometimes $CPP names a directory.
     
    70057818fi
    70067819if test -z "$CPP"; then
    7007   if ${ac_cv_prog_CPP+:} false; then :
     7820  if test "${ac_cv_prog_CPP+set}" = set; then
    70087821  $as_echo_n "(cached) " >&6
    70097822else
     
    70207833  # On the NeXT, cc -E runs the code through the compiler's parser,
    70217834  # not just through cpp. "Syntax error" is here to catch this case.
    7022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7835  cat >conftest.$ac_ext <<_ACEOF
     7836/* confdefs.h.  */
     7837_ACEOF
     7838cat confdefs.h >>conftest.$ac_ext
     7839cat >>conftest.$ac_ext <<_ACEOF
    70237840/* end confdefs.h.  */
    70247841#ifdef __STDC__
     
    70297846                     Syntax error
    70307847_ACEOF
    7031 if ac_fn_c_try_cpp "$LINENO"; then :
    7032 
    7033 else
     7848if { (ac_try="$ac_cpp conftest.$ac_ext"
     7849case "(($ac_try" in
     7850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7851  *) ac_try_echo=$ac_try;;
     7852esac
     7853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7854$as_echo "$ac_try_echo") >&5
     7855  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     7856  ac_status=$?
     7857  grep -v '^ *+' conftest.er1 >conftest.err
     7858  rm -f conftest.er1
     7859  cat conftest.err >&5
     7860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7861  (exit $ac_status); } >/dev/null && {
     7862         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     7863         test ! -s conftest.err
     7864       }; then
     7865  :
     7866else
     7867  $as_echo "$as_me: failed program was:" >&5
     7868sed 's/^/| /' conftest.$ac_ext >&5
     7869
    70347870  # Broken: fails on valid input.
    70357871continue
    70367872fi
    7037 rm -f conftest.err conftest.i conftest.$ac_ext
     7873
     7874rm -f conftest.err conftest.$ac_ext
    70387875
    70397876  # OK, works on sane cases.  Now check whether nonexistent headers
    70407877  # can be detected and how.
    7041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7878  cat >conftest.$ac_ext <<_ACEOF
     7879/* confdefs.h.  */
     7880_ACEOF
     7881cat confdefs.h >>conftest.$ac_ext
     7882cat >>conftest.$ac_ext <<_ACEOF
    70427883/* end confdefs.h.  */
    70437884#include <ac_nonexistent.h>
    70447885_ACEOF
    7045 if ac_fn_c_try_cpp "$LINENO"; then :
     7886if { (ac_try="$ac_cpp conftest.$ac_ext"
     7887case "(($ac_try" in
     7888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7889  *) ac_try_echo=$ac_try;;
     7890esac
     7891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7892$as_echo "$ac_try_echo") >&5
     7893  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     7894  ac_status=$?
     7895  grep -v '^ *+' conftest.er1 >conftest.err
     7896  rm -f conftest.er1
     7897  cat conftest.err >&5
     7898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7899  (exit $ac_status); } >/dev/null && {
     7900         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     7901         test ! -s conftest.err
     7902       }; then
    70467903  # Broken: success on invalid input.
    70477904continue
    70487905else
     7906  $as_echo "$as_me: failed program was:" >&5
     7907sed 's/^/| /' conftest.$ac_ext >&5
     7908
    70497909  # Passes both tests.
    70507910ac_preproc_ok=:
    70517911break
    70527912fi
    7053 rm -f conftest.err conftest.i conftest.$ac_ext
     7913
     7914rm -f conftest.err conftest.$ac_ext
    70547915
    70557916done
    70567917# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    7057 rm -f conftest.i conftest.err conftest.$ac_ext
    7058 if $ac_preproc_ok; then :
     7918rm -f conftest.err conftest.$ac_ext
     7919if $ac_preproc_ok; then
    70597920  break
    70607921fi
     
    70687929  ac_cv_prog_CPP=$CPP
    70697930fi
    7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     7931{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
    70717932$as_echo "$CPP" >&6; }
    70727933ac_preproc_ok=false
     
    70797940  # On the NeXT, cc -E runs the code through the compiler's parser,
    70807941  # not just through cpp. "Syntax error" is here to catch this case.
    7081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7942  cat >conftest.$ac_ext <<_ACEOF
     7943/* confdefs.h.  */
     7944_ACEOF
     7945cat confdefs.h >>conftest.$ac_ext
     7946cat >>conftest.$ac_ext <<_ACEOF
    70827947/* end confdefs.h.  */
    70837948#ifdef __STDC__
     
    70887953                     Syntax error
    70897954_ACEOF
    7090 if ac_fn_c_try_cpp "$LINENO"; then :
    7091 
    7092 else
     7955if { (ac_try="$ac_cpp conftest.$ac_ext"
     7956case "(($ac_try" in
     7957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7958  *) ac_try_echo=$ac_try;;
     7959esac
     7960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7961$as_echo "$ac_try_echo") >&5
     7962  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     7963  ac_status=$?
     7964  grep -v '^ *+' conftest.er1 >conftest.err
     7965  rm -f conftest.er1
     7966  cat conftest.err >&5
     7967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7968  (exit $ac_status); } >/dev/null && {
     7969         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     7970         test ! -s conftest.err
     7971       }; then
     7972  :
     7973else
     7974  $as_echo "$as_me: failed program was:" >&5
     7975sed 's/^/| /' conftest.$ac_ext >&5
     7976
    70937977  # Broken: fails on valid input.
    70947978continue
    70957979fi
    7096 rm -f conftest.err conftest.i conftest.$ac_ext
     7980
     7981rm -f conftest.err conftest.$ac_ext
    70977982
    70987983  # OK, works on sane cases.  Now check whether nonexistent headers
    70997984  # can be detected and how.
    7100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7985  cat >conftest.$ac_ext <<_ACEOF
     7986/* confdefs.h.  */
     7987_ACEOF
     7988cat confdefs.h >>conftest.$ac_ext
     7989cat >>conftest.$ac_ext <<_ACEOF
    71017990/* end confdefs.h.  */
    71027991#include <ac_nonexistent.h>
    71037992_ACEOF
    7104 if ac_fn_c_try_cpp "$LINENO"; then :
     7993if { (ac_try="$ac_cpp conftest.$ac_ext"
     7994case "(($ac_try" in
     7995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     7996  *) ac_try_echo=$ac_try;;
     7997esac
     7998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     7999$as_echo "$ac_try_echo") >&5
     8000  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     8001  ac_status=$?
     8002  grep -v '^ *+' conftest.er1 >conftest.err
     8003  rm -f conftest.er1
     8004  cat conftest.err >&5
     8005  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8006  (exit $ac_status); } >/dev/null && {
     8007         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     8008         test ! -s conftest.err
     8009       }; then
    71058010  # Broken: success on invalid input.
    71068011continue
    71078012else
     8013  $as_echo "$as_me: failed program was:" >&5
     8014sed 's/^/| /' conftest.$ac_ext >&5
     8015
    71088016  # Passes both tests.
    71098017ac_preproc_ok=:
    71108018break
    71118019fi
    7112 rm -f conftest.err conftest.i conftest.$ac_ext
     8020
     8021rm -f conftest.err conftest.$ac_ext
    71138022
    71148023done
    71158024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    7116 rm -f conftest.i conftest.err conftest.$ac_ext
    7117 if $ac_preproc_ok; then :
    7118 
    7119 else
    7120   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     8025rm -f conftest.err conftest.$ac_ext
     8026if $ac_preproc_ok; then
     8027  :
     8028else
     8029  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    71218030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    7122 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    7123 See \`config.log' for more details" "$LINENO" 5; }
     8031{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     8032See \`config.log' for more details." >&5
     8033$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     8034See \`config.log' for more details." >&2;}
     8035   { (exit 1); exit 1; }; }; }
    71248036fi
    71258037
     
    71448056    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    71458057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8058{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    71478059$as_echo_n "checking for $ac_word... " >&6; }
    7148 if ${ac_cv_prog_CXX+:} false; then :
     8060if test "${ac_cv_prog_CXX+set}" = set; then
    71498061  $as_echo_n "(cached) " >&6
    71508062else
     
    71578069  IFS=$as_save_IFS
    71588070  test -z "$as_dir" && as_dir=.
    7159     for ac_exec_ext in '' $ac_executable_extensions; do
    7160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8071  for ac_exec_ext in '' $ac_executable_extensions; do
     8072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    71618073    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    7162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8074    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    71638075    break 2
    71648076  fi
    71658077done
    7166   done
     8078done
    71678079IFS=$as_save_IFS
    71688080
     
    71718083CXX=$ac_cv_prog_CXX
    71728084if test -n "$CXX"; then
    7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     8085  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
    71748086$as_echo "$CXX" >&6; }
    71758087else
    7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8088  { $as_echo "$as_me:$LINENO: result: no" >&5
    71778089$as_echo "no" >&6; }
    71788090fi
     
    71888100  # Extract the first word of "$ac_prog", so it can be a program name with args.
    71898101set dummy $ac_prog; ac_word=$2
    7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    71918103$as_echo_n "checking for $ac_word... " >&6; }
    7192 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
     8104if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    71938105  $as_echo_n "(cached) " >&6
    71948106else
     
    72018113  IFS=$as_save_IFS
    72028114  test -z "$as_dir" && as_dir=.
    7203     for ac_exec_ext in '' $ac_executable_extensions; do
    7204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8115  for ac_exec_ext in '' $ac_executable_extensions; do
     8116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    72058117    ac_cv_prog_ac_ct_CXX="$ac_prog"
    7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8118    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    72078119    break 2
    72088120  fi
    72098121done
    7210   done
     8122done
    72118123IFS=$as_save_IFS
    72128124
     
    72158127ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    72168128if test -n "$ac_ct_CXX"; then
    7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
     8129  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    72188130$as_echo "$ac_ct_CXX" >&6; }
    72198131else
    7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8132  { $as_echo "$as_me:$LINENO: result: no" >&5
    72218133$as_echo "no" >&6; }
    72228134fi
     
    72318143    case $cross_compiling:$ac_tool_warned in
    72328144yes:)
    7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     8145{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    72348146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    72358147ac_tool_warned=yes ;;
     
    72428154fi
    72438155# Provide some information about the compiler.
    7244 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
     8156$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
    72458157set X $ac_compile
    72468158ac_compiler=$2
    7247 for ac_option in --version -v -V -qversion; do
    7248   { { ac_try="$ac_compiler $ac_option >&5"
     8159{ (ac_try="$ac_compiler --version >&5"
    72498160case "(($ac_try" in
    72508161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    72518162  *) ac_try_echo=$ac_try;;
    72528163esac
    7253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    7254 $as_echo "$ac_try_echo"; } >&5
    7255   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
     8164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8165$as_echo "$ac_try_echo") >&5
     8166  (eval "$ac_compiler --version >&5") 2>&5
    72568167  ac_status=$?
    7257   if test -s conftest.err; then
    7258     sed '10a\
    7259 ... rest of stderr output deleted ...
    7260          10q' conftest.err >conftest.er1
    7261     cat conftest.er1 >&5
    7262   fi
    7263   rm -f conftest.er1 conftest.err
    7264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    7265   test $ac_status = 0; }
    7266 done
    7267 
    7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
     8168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8169  (exit $ac_status); }
     8170{ (ac_try="$ac_compiler -v >&5"
     8171case "(($ac_try" in
     8172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8173  *) ac_try_echo=$ac_try;;
     8174esac
     8175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8176$as_echo "$ac_try_echo") >&5
     8177  (eval "$ac_compiler -v >&5") 2>&5
     8178  ac_status=$?
     8179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8180  (exit $ac_status); }
     8181{ (ac_try="$ac_compiler -V >&5"
     8182case "(($ac_try" in
     8183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8184  *) ac_try_echo=$ac_try;;
     8185esac
     8186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8187$as_echo "$ac_try_echo") >&5
     8188  (eval "$ac_compiler -V >&5") 2>&5
     8189  ac_status=$?
     8190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8191  (exit $ac_status); }
     8192
     8193{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    72698194$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    7270 if ${ac_cv_cxx_compiler_gnu+:} false; then :
     8195if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    72718196  $as_echo_n "(cached) " >&6
    72728197else
    7273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8198  cat >conftest.$ac_ext <<_ACEOF
     8199/* confdefs.h.  */
     8200_ACEOF
     8201cat confdefs.h >>conftest.$ac_ext
     8202cat >>conftest.$ac_ext <<_ACEOF
    72748203/* end confdefs.h.  */
    72758204
     
    72858214}
    72868215_ACEOF
    7287 if ac_fn_cxx_try_compile "$LINENO"; then :
     8216rm -f conftest.$ac_objext
     8217if { (ac_try="$ac_compile"
     8218case "(($ac_try" in
     8219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8220  *) ac_try_echo=$ac_try;;
     8221esac
     8222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8223$as_echo "$ac_try_echo") >&5
     8224  (eval "$ac_compile") 2>conftest.er1
     8225  ac_status=$?
     8226  grep -v '^ *+' conftest.er1 >conftest.err
     8227  rm -f conftest.er1
     8228  cat conftest.err >&5
     8229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8230  (exit $ac_status); } && {
     8231         test -z "$ac_cxx_werror_flag" ||
     8232         test ! -s conftest.err
     8233       } && test -s conftest.$ac_objext; then
    72888234  ac_compiler_gnu=yes
    72898235else
    7290   ac_compiler_gnu=no
    7291 fi
     8236  $as_echo "$as_me: failed program was:" >&5
     8237sed 's/^/| /' conftest.$ac_ext >&5
     8238
     8239        ac_compiler_gnu=no
     8240fi
     8241
    72928242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    72938243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    72948244
    72958245fi
    7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
     8246{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    72978247$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
    72988248if test $ac_compiler_gnu = yes; then
     
    73038253ac_test_CXXFLAGS=${CXXFLAGS+set}
    73048254ac_save_CXXFLAGS=$CXXFLAGS
    7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
     8255{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    73068256$as_echo_n "checking whether $CXX accepts -g... " >&6; }
    7307 if ${ac_cv_prog_cxx_g+:} false; then :
     8257if test "${ac_cv_prog_cxx_g+set}" = set; then
    73088258  $as_echo_n "(cached) " >&6
    73098259else
     
    73128262   ac_cv_prog_cxx_g=no
    73138263   CXXFLAGS="-g"
    7314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8264   cat >conftest.$ac_ext <<_ACEOF
     8265/* confdefs.h.  */
     8266_ACEOF
     8267cat confdefs.h >>conftest.$ac_ext
     8268cat >>conftest.$ac_ext <<_ACEOF
    73158269/* end confdefs.h.  */
    73168270
     
    73238277}
    73248278_ACEOF
    7325 if ac_fn_cxx_try_compile "$LINENO"; then :
     8279rm -f conftest.$ac_objext
     8280if { (ac_try="$ac_compile"
     8281case "(($ac_try" in
     8282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8283  *) ac_try_echo=$ac_try;;
     8284esac
     8285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8286$as_echo "$ac_try_echo") >&5
     8287  (eval "$ac_compile") 2>conftest.er1
     8288  ac_status=$?
     8289  grep -v '^ *+' conftest.er1 >conftest.err
     8290  rm -f conftest.er1
     8291  cat conftest.err >&5
     8292  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8293  (exit $ac_status); } && {
     8294         test -z "$ac_cxx_werror_flag" ||
     8295         test ! -s conftest.err
     8296       } && test -s conftest.$ac_objext; then
    73268297  ac_cv_prog_cxx_g=yes
    73278298else
    7328   CXXFLAGS=""
    7329       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8299  $as_echo "$as_me: failed program was:" >&5
     8300sed 's/^/| /' conftest.$ac_ext >&5
     8301
     8302        CXXFLAGS=""
     8303      cat >conftest.$ac_ext <<_ACEOF
     8304/* confdefs.h.  */
     8305_ACEOF
     8306cat confdefs.h >>conftest.$ac_ext
     8307cat >>conftest.$ac_ext <<_ACEOF
    73308308/* end confdefs.h.  */
    73318309
     
    73388316}
    73398317_ACEOF
    7340 if ac_fn_cxx_try_compile "$LINENO"; then :
    7341 
    7342 else
    7343   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     8318rm -f conftest.$ac_objext
     8319if { (ac_try="$ac_compile"
     8320case "(($ac_try" in
     8321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8322  *) ac_try_echo=$ac_try;;
     8323esac
     8324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8325$as_echo "$ac_try_echo") >&5
     8326  (eval "$ac_compile") 2>conftest.er1
     8327  ac_status=$?
     8328  grep -v '^ *+' conftest.er1 >conftest.err
     8329  rm -f conftest.er1
     8330  cat conftest.err >&5
     8331  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8332  (exit $ac_status); } && {
     8333         test -z "$ac_cxx_werror_flag" ||
     8334         test ! -s conftest.err
     8335       } && test -s conftest.$ac_objext; then
     8336  :
     8337else
     8338  $as_echo "$as_me: failed program was:" >&5
     8339sed 's/^/| /' conftest.$ac_ext >&5
     8340
     8341        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    73448342         CXXFLAGS="-g"
    7345          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8343         cat >conftest.$ac_ext <<_ACEOF
     8344/* confdefs.h.  */
     8345_ACEOF
     8346cat confdefs.h >>conftest.$ac_ext
     8347cat >>conftest.$ac_ext <<_ACEOF
    73468348/* end confdefs.h.  */
    73478349
     
    73548356}
    73558357_ACEOF
    7356 if ac_fn_cxx_try_compile "$LINENO"; then :
     8358rm -f conftest.$ac_objext
     8359if { (ac_try="$ac_compile"
     8360case "(($ac_try" in
     8361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8362  *) ac_try_echo=$ac_try;;
     8363esac
     8364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8365$as_echo "$ac_try_echo") >&5
     8366  (eval "$ac_compile") 2>conftest.er1
     8367  ac_status=$?
     8368  grep -v '^ *+' conftest.er1 >conftest.err
     8369  rm -f conftest.er1
     8370  cat conftest.err >&5
     8371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8372  (exit $ac_status); } && {
     8373         test -z "$ac_cxx_werror_flag" ||
     8374         test ! -s conftest.err
     8375       } && test -s conftest.$ac_objext; then
    73578376  ac_cv_prog_cxx_g=yes
    7358 fi
     8377else
     8378  $as_echo "$as_me: failed program was:" >&5
     8379sed 's/^/| /' conftest.$ac_ext >&5
     8380
     8381
     8382fi
     8383
    73598384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    73608385fi
     8386
    73618387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    73628388fi
     8389
    73638390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    73648391   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    73658392fi
    7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
     8393{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    73678394$as_echo "$ac_cv_prog_cxx_g" >&6; }
    73688395if test "$ac_test_CXXFLAGS" = set; then
     
    73928419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    73938420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
     8421{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
    73958422$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
    73968423if test -z "$CXXCPP"; then
    7397   if ${ac_cv_prog_CXXCPP+:} false; then :
     8424  if test "${ac_cv_prog_CXXCPP+set}" = set; then
    73988425  $as_echo_n "(cached) " >&6
    73998426else
     
    74108437  # On the NeXT, cc -E runs the code through the compiler's parser,
    74118438  # not just through cpp. "Syntax error" is here to catch this case.
    7412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8439  cat >conftest.$ac_ext <<_ACEOF
     8440/* confdefs.h.  */
     8441_ACEOF
     8442cat confdefs.h >>conftest.$ac_ext
     8443cat >>conftest.$ac_ext <<_ACEOF
    74138444/* end confdefs.h.  */
    74148445#ifdef __STDC__
     
    74198450                     Syntax error
    74208451_ACEOF
    7421 if ac_fn_cxx_try_cpp "$LINENO"; then :
    7422 
    7423 else
     8452if { (ac_try="$ac_cpp conftest.$ac_ext"
     8453case "(($ac_try" in
     8454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8455  *) ac_try_echo=$ac_try;;
     8456esac
     8457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8458$as_echo "$ac_try_echo") >&5
     8459  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     8460  ac_status=$?
     8461  grep -v '^ *+' conftest.er1 >conftest.err
     8462  rm -f conftest.er1
     8463  cat conftest.err >&5
     8464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8465  (exit $ac_status); } >/dev/null && {
     8466         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     8467         test ! -s conftest.err
     8468       }; then
     8469  :
     8470else
     8471  $as_echo "$as_me: failed program was:" >&5
     8472sed 's/^/| /' conftest.$ac_ext >&5
     8473
    74248474  # Broken: fails on valid input.
    74258475continue
    74268476fi
    7427 rm -f conftest.err conftest.i conftest.$ac_ext
     8477
     8478rm -f conftest.err conftest.$ac_ext
    74288479
    74298480  # OK, works on sane cases.  Now check whether nonexistent headers
    74308481  # can be detected and how.
    7431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8482  cat >conftest.$ac_ext <<_ACEOF
     8483/* confdefs.h.  */
     8484_ACEOF
     8485cat confdefs.h >>conftest.$ac_ext
     8486cat >>conftest.$ac_ext <<_ACEOF
    74328487/* end confdefs.h.  */
    74338488#include <ac_nonexistent.h>
    74348489_ACEOF
    7435 if ac_fn_cxx_try_cpp "$LINENO"; then :
     8490if { (ac_try="$ac_cpp conftest.$ac_ext"
     8491case "(($ac_try" in
     8492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8493  *) ac_try_echo=$ac_try;;
     8494esac
     8495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8496$as_echo "$ac_try_echo") >&5
     8497  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     8498  ac_status=$?
     8499  grep -v '^ *+' conftest.er1 >conftest.err
     8500  rm -f conftest.er1
     8501  cat conftest.err >&5
     8502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8503  (exit $ac_status); } >/dev/null && {
     8504         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     8505         test ! -s conftest.err
     8506       }; then
    74368507  # Broken: success on invalid input.
    74378508continue
    74388509else
     8510  $as_echo "$as_me: failed program was:" >&5
     8511sed 's/^/| /' conftest.$ac_ext >&5
     8512
    74398513  # Passes both tests.
    74408514ac_preproc_ok=:
    74418515break
    74428516fi
    7443 rm -f conftest.err conftest.i conftest.$ac_ext
     8517
     8518rm -f conftest.err conftest.$ac_ext
    74448519
    74458520done
    74468521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    7447 rm -f conftest.i conftest.err conftest.$ac_ext
    7448 if $ac_preproc_ok; then :
     8522rm -f conftest.err conftest.$ac_ext
     8523if $ac_preproc_ok; then
    74498524  break
    74508525fi
     
    74588533  ac_cv_prog_CXXCPP=$CXXCPP
    74598534fi
    7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
     8535{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
    74618536$as_echo "$CXXCPP" >&6; }
    74628537ac_preproc_ok=false
     
    74698544  # On the NeXT, cc -E runs the code through the compiler's parser,
    74708545  # not just through cpp. "Syntax error" is here to catch this case.
    7471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8546  cat >conftest.$ac_ext <<_ACEOF
     8547/* confdefs.h.  */
     8548_ACEOF
     8549cat confdefs.h >>conftest.$ac_ext
     8550cat >>conftest.$ac_ext <<_ACEOF
    74728551/* end confdefs.h.  */
    74738552#ifdef __STDC__
     
    74788557                     Syntax error
    74798558_ACEOF
    7480 if ac_fn_cxx_try_cpp "$LINENO"; then :
    7481 
    7482 else
     8559if { (ac_try="$ac_cpp conftest.$ac_ext"
     8560case "(($ac_try" in
     8561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8562  *) ac_try_echo=$ac_try;;
     8563esac
     8564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8565$as_echo "$ac_try_echo") >&5
     8566  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     8567  ac_status=$?
     8568  grep -v '^ *+' conftest.er1 >conftest.err
     8569  rm -f conftest.er1
     8570  cat conftest.err >&5
     8571  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8572  (exit $ac_status); } >/dev/null && {
     8573         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     8574         test ! -s conftest.err
     8575       }; then
     8576  :
     8577else
     8578  $as_echo "$as_me: failed program was:" >&5
     8579sed 's/^/| /' conftest.$ac_ext >&5
     8580
    74838581  # Broken: fails on valid input.
    74848582continue
    74858583fi
    7486 rm -f conftest.err conftest.i conftest.$ac_ext
     8584
     8585rm -f conftest.err conftest.$ac_ext
    74878586
    74888587  # OK, works on sane cases.  Now check whether nonexistent headers
    74898588  # can be detected and how.
    7490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8589  cat >conftest.$ac_ext <<_ACEOF
     8590/* confdefs.h.  */
     8591_ACEOF
     8592cat confdefs.h >>conftest.$ac_ext
     8593cat >>conftest.$ac_ext <<_ACEOF
    74918594/* end confdefs.h.  */
    74928595#include <ac_nonexistent.h>
    74938596_ACEOF
    7494 if ac_fn_cxx_try_cpp "$LINENO"; then :
     8597if { (ac_try="$ac_cpp conftest.$ac_ext"
     8598case "(($ac_try" in
     8599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8600  *) ac_try_echo=$ac_try;;
     8601esac
     8602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8603$as_echo "$ac_try_echo") >&5
     8604  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     8605  ac_status=$?
     8606  grep -v '^ *+' conftest.er1 >conftest.err
     8607  rm -f conftest.er1
     8608  cat conftest.err >&5
     8609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8610  (exit $ac_status); } >/dev/null && {
     8611         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     8612         test ! -s conftest.err
     8613       }; then
    74958614  # Broken: success on invalid input.
    74968615continue
    74978616else
     8617  $as_echo "$as_me: failed program was:" >&5
     8618sed 's/^/| /' conftest.$ac_ext >&5
     8619
    74988620  # Passes both tests.
    74998621ac_preproc_ok=:
    75008622break
    75018623fi
    7502 rm -f conftest.err conftest.i conftest.$ac_ext
     8624
     8625rm -f conftest.err conftest.$ac_ext
    75038626
    75048627done
    75058628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    7506 rm -f conftest.i conftest.err conftest.$ac_ext
    7507 if $ac_preproc_ok; then :
    7508 
    7509 else
    7510   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     8629rm -f conftest.err conftest.$ac_ext
     8630if $ac_preproc_ok; then
     8631  :
     8632else
     8633  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    75118634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    7512 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
    7513 See \`config.log' for more details" "$LINENO" 5; }
     8635{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     8636See \`config.log' for more details." >&5
     8637$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     8638See \`config.log' for more details." >&2;}
     8639   { (exit 1); exit 1; }; }; }
    75148640fi
    75158641
     
    75348660    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    75358661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8662{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    75378663$as_echo_n "checking for $ac_word... " >&6; }
    7538 if ${ac_cv_prog_CXX+:} false; then :
     8664if test "${ac_cv_prog_CXX+set}" = set; then
    75398665  $as_echo_n "(cached) " >&6
    75408666else
     
    75478673  IFS=$as_save_IFS
    75488674  test -z "$as_dir" && as_dir=.
    7549     for ac_exec_ext in '' $ac_executable_extensions; do
    7550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8675  for ac_exec_ext in '' $ac_executable_extensions; do
     8676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    75518677    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8678    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    75538679    break 2
    75548680  fi
    75558681done
    7556   done
     8682done
    75578683IFS=$as_save_IFS
    75588684
     
    75618687CXX=$ac_cv_prog_CXX
    75628688if test -n "$CXX"; then
    7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     8689  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
    75648690$as_echo "$CXX" >&6; }
    75658691else
    7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8692  { $as_echo "$as_me:$LINENO: result: no" >&5
    75678693$as_echo "no" >&6; }
    75688694fi
     
    75788704  # Extract the first word of "$ac_prog", so it can be a program name with args.
    75798705set dummy $ac_prog; ac_word=$2
    7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8706{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    75818707$as_echo_n "checking for $ac_word... " >&6; }
    7582 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
     8708if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    75838709  $as_echo_n "(cached) " >&6
    75848710else
     
    75918717  IFS=$as_save_IFS
    75928718  test -z "$as_dir" && as_dir=.
    7593     for ac_exec_ext in '' $ac_executable_extensions; do
    7594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8719  for ac_exec_ext in '' $ac_executable_extensions; do
     8720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    75958721    ac_cv_prog_ac_ct_CXX="$ac_prog"
    7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8722    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    75978723    break 2
    75988724  fi
    75998725done
    7600   done
     8726done
    76018727IFS=$as_save_IFS
    76028728
     
    76058731ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    76068732if test -n "$ac_ct_CXX"; then
    7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
     8733  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    76088734$as_echo "$ac_ct_CXX" >&6; }
    76098735else
    7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8736  { $as_echo "$as_me:$LINENO: result: no" >&5
    76118737$as_echo "no" >&6; }
    76128738fi
     
    76218747    case $cross_compiling:$ac_tool_warned in
    76228748yes:)
    7623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     8749{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    76248750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    76258751ac_tool_warned=yes ;;
     
    76328758fi
    76338759# Provide some information about the compiler.
    7634 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
     8760$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
    76358761set X $ac_compile
    76368762ac_compiler=$2
    7637 for ac_option in --version -v -V -qversion; do
    7638   { { ac_try="$ac_compiler $ac_option >&5"
     8763{ (ac_try="$ac_compiler --version >&5"
    76398764case "(($ac_try" in
    76408765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    76418766  *) ac_try_echo=$ac_try;;
    76428767esac
    7643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    7644 $as_echo "$ac_try_echo"; } >&5
    7645   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
     8768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8769$as_echo "$ac_try_echo") >&5
     8770  (eval "$ac_compiler --version >&5") 2>&5
    76468771  ac_status=$?
    7647   if test -s conftest.err; then
    7648     sed '10a\
    7649 ... rest of stderr output deleted ...
    7650          10q' conftest.err >conftest.er1
    7651     cat conftest.er1 >&5
    7652   fi
    7653   rm -f conftest.er1 conftest.err
    7654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    7655   test $ac_status = 0; }
    7656 done
    7657 
    7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
     8772  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8773  (exit $ac_status); }
     8774{ (ac_try="$ac_compiler -v >&5"
     8775case "(($ac_try" in
     8776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8777  *) ac_try_echo=$ac_try;;
     8778esac
     8779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8780$as_echo "$ac_try_echo") >&5
     8781  (eval "$ac_compiler -v >&5") 2>&5
     8782  ac_status=$?
     8783  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8784  (exit $ac_status); }
     8785{ (ac_try="$ac_compiler -V >&5"
     8786case "(($ac_try" in
     8787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8788  *) ac_try_echo=$ac_try;;
     8789esac
     8790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8791$as_echo "$ac_try_echo") >&5
     8792  (eval "$ac_compiler -V >&5") 2>&5
     8793  ac_status=$?
     8794  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8795  (exit $ac_status); }
     8796
     8797{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    76598798$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    7660 if ${ac_cv_cxx_compiler_gnu+:} false; then :
     8799if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    76618800  $as_echo_n "(cached) " >&6
    76628801else
    7663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8802  cat >conftest.$ac_ext <<_ACEOF
     8803/* confdefs.h.  */
     8804_ACEOF
     8805cat confdefs.h >>conftest.$ac_ext
     8806cat >>conftest.$ac_ext <<_ACEOF
    76648807/* end confdefs.h.  */
    76658808
     
    76758818}
    76768819_ACEOF
    7677 if ac_fn_cxx_try_compile "$LINENO"; then :
     8820rm -f conftest.$ac_objext
     8821if { (ac_try="$ac_compile"
     8822case "(($ac_try" in
     8823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8824  *) ac_try_echo=$ac_try;;
     8825esac
     8826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8827$as_echo "$ac_try_echo") >&5
     8828  (eval "$ac_compile") 2>conftest.er1
     8829  ac_status=$?
     8830  grep -v '^ *+' conftest.er1 >conftest.err
     8831  rm -f conftest.er1
     8832  cat conftest.err >&5
     8833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8834  (exit $ac_status); } && {
     8835         test -z "$ac_cxx_werror_flag" ||
     8836         test ! -s conftest.err
     8837       } && test -s conftest.$ac_objext; then
    76788838  ac_compiler_gnu=yes
    76798839else
    7680   ac_compiler_gnu=no
    7681 fi
     8840  $as_echo "$as_me: failed program was:" >&5
     8841sed 's/^/| /' conftest.$ac_ext >&5
     8842
     8843        ac_compiler_gnu=no
     8844fi
     8845
    76828846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    76838847ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    76848848
    76858849fi
    7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
     8850{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    76878851$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
    76888852if test $ac_compiler_gnu = yes; then
     
    76938857ac_test_CXXFLAGS=${CXXFLAGS+set}
    76948858ac_save_CXXFLAGS=$CXXFLAGS
    7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
     8859{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    76968860$as_echo_n "checking whether $CXX accepts -g... " >&6; }
    7697 if ${ac_cv_prog_cxx_g+:} false; then :
     8861if test "${ac_cv_prog_cxx_g+set}" = set; then
    76988862  $as_echo_n "(cached) " >&6
    76998863else
     
    77028866   ac_cv_prog_cxx_g=no
    77038867   CXXFLAGS="-g"
    7704    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8868   cat >conftest.$ac_ext <<_ACEOF
     8869/* confdefs.h.  */
     8870_ACEOF
     8871cat confdefs.h >>conftest.$ac_ext
     8872cat >>conftest.$ac_ext <<_ACEOF
    77058873/* end confdefs.h.  */
    77068874
     
    77138881}
    77148882_ACEOF
    7715 if ac_fn_cxx_try_compile "$LINENO"; then :
     8883rm -f conftest.$ac_objext
     8884if { (ac_try="$ac_compile"
     8885case "(($ac_try" in
     8886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8887  *) ac_try_echo=$ac_try;;
     8888esac
     8889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8890$as_echo "$ac_try_echo") >&5
     8891  (eval "$ac_compile") 2>conftest.er1
     8892  ac_status=$?
     8893  grep -v '^ *+' conftest.er1 >conftest.err
     8894  rm -f conftest.er1
     8895  cat conftest.err >&5
     8896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8897  (exit $ac_status); } && {
     8898         test -z "$ac_cxx_werror_flag" ||
     8899         test ! -s conftest.err
     8900       } && test -s conftest.$ac_objext; then
    77168901  ac_cv_prog_cxx_g=yes
    77178902else
    7718   CXXFLAGS=""
    7719       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8903  $as_echo "$as_me: failed program was:" >&5
     8904sed 's/^/| /' conftest.$ac_ext >&5
     8905
     8906        CXXFLAGS=""
     8907      cat >conftest.$ac_ext <<_ACEOF
     8908/* confdefs.h.  */
     8909_ACEOF
     8910cat confdefs.h >>conftest.$ac_ext
     8911cat >>conftest.$ac_ext <<_ACEOF
    77208912/* end confdefs.h.  */
    77218913
     
    77288920}
    77298921_ACEOF
    7730 if ac_fn_cxx_try_compile "$LINENO"; then :
    7731 
    7732 else
    7733   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     8922rm -f conftest.$ac_objext
     8923if { (ac_try="$ac_compile"
     8924case "(($ac_try" in
     8925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8926  *) ac_try_echo=$ac_try;;
     8927esac
     8928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8929$as_echo "$ac_try_echo") >&5
     8930  (eval "$ac_compile") 2>conftest.er1
     8931  ac_status=$?
     8932  grep -v '^ *+' conftest.er1 >conftest.err
     8933  rm -f conftest.er1
     8934  cat conftest.err >&5
     8935  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8936  (exit $ac_status); } && {
     8937         test -z "$ac_cxx_werror_flag" ||
     8938         test ! -s conftest.err
     8939       } && test -s conftest.$ac_objext; then
     8940  :
     8941else
     8942  $as_echo "$as_me: failed program was:" >&5
     8943sed 's/^/| /' conftest.$ac_ext >&5
     8944
     8945        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    77348946         CXXFLAGS="-g"
    7735          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     8947         cat >conftest.$ac_ext <<_ACEOF
     8948/* confdefs.h.  */
     8949_ACEOF
     8950cat confdefs.h >>conftest.$ac_ext
     8951cat >>conftest.$ac_ext <<_ACEOF
    77368952/* end confdefs.h.  */
    77378953
     
    77448960}
    77458961_ACEOF
    7746 if ac_fn_cxx_try_compile "$LINENO"; then :
     8962rm -f conftest.$ac_objext
     8963if { (ac_try="$ac_compile"
     8964case "(($ac_try" in
     8965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     8966  *) ac_try_echo=$ac_try;;
     8967esac
     8968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     8969$as_echo "$ac_try_echo") >&5
     8970  (eval "$ac_compile") 2>conftest.er1
     8971  ac_status=$?
     8972  grep -v '^ *+' conftest.er1 >conftest.err
     8973  rm -f conftest.er1
     8974  cat conftest.err >&5
     8975  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8976  (exit $ac_status); } && {
     8977         test -z "$ac_cxx_werror_flag" ||
     8978         test ! -s conftest.err
     8979       } && test -s conftest.$ac_objext; then
    77478980  ac_cv_prog_cxx_g=yes
    7748 fi
     8981else
     8982  $as_echo "$as_me: failed program was:" >&5
     8983sed 's/^/| /' conftest.$ac_ext >&5
     8984
     8985
     8986fi
     8987
    77498988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    77508989fi
     8990
    77518991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    77528992fi
     8993
    77538994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    77548995   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    77558996fi
    7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
     8997{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    77578998$as_echo "$ac_cv_prog_cxx_g" >&6; }
    77588999if test "$ac_test_CXXFLAGS" = set; then
     
    77859026
    77869027
    7787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     9028
     9029 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    77889030$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
    7789 if ${ac_cv_c_bigendian+:} false; then :
     9031if test "${ac_cv_c_bigendian+set}" = set; then
    77909032  $as_echo_n "(cached) " >&6
    77919033else
    77929034  ac_cv_c_bigendian=unknown
    77939035    # See if we're dealing with a universal compiler.
    7794     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9036    cat >conftest.$ac_ext <<_ACEOF
     9037/* confdefs.h.  */
     9038_ACEOF
     9039cat confdefs.h >>conftest.$ac_ext
     9040cat >>conftest.$ac_ext <<_ACEOF
    77959041/* end confdefs.h.  */
    77969042#ifndef __APPLE_CC__
     
    78009046
    78019047_ACEOF
    7802 if ac_fn_cxx_try_compile "$LINENO"; then :
     9048rm -f conftest.$ac_objext
     9049if { (ac_try="$ac_compile"
     9050case "(($ac_try" in
     9051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9052  *) ac_try_echo=$ac_try;;
     9053esac
     9054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9055$as_echo "$ac_try_echo") >&5
     9056  (eval "$ac_compile") 2>conftest.er1
     9057  ac_status=$?
     9058  grep -v '^ *+' conftest.er1 >conftest.err
     9059  rm -f conftest.er1
     9060  cat conftest.err >&5
     9061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9062  (exit $ac_status); } && {
     9063         test -z "$ac_cxx_werror_flag" ||
     9064         test ! -s conftest.err
     9065       } && test -s conftest.$ac_objext; then
    78039066
    78049067        # Check for potential -arch flags.  It is not universal unless
    7805         # there are at least two -arch flags with different values.
    7806         ac_arch=
    7807         ac_prev=
    7808         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
    7809          if test -n "$ac_prev"; then
    7810            case $ac_word in
    7811              i?86 | x86_64 | ppc | ppc64)
    7812                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
    7813                  ac_arch=$ac_word
    7814                else
    7815                  ac_cv_c_bigendian=universal
    7816                  break
    7817                fi
    7818                ;;
    7819            esac
    7820            ac_prev=
    7821          elif test "x$ac_word" = "x-arch"; then
    7822            ac_prev=arch
    7823          fi
    7824        done
    7825 fi
     9068        # there are some -arch flags.  Note that *ppc* also matches
     9069        # ppc64.  This check is also rather less than ideal.
     9070        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
     9071          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
     9072        esac
     9073else
     9074  $as_echo "$as_me: failed program was:" >&5
     9075sed 's/^/| /' conftest.$ac_ext >&5
     9076
     9077
     9078fi
     9079
    78269080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    78279081    if test $ac_cv_c_bigendian = unknown; then
    78289082      # See if sys/param.h defines the BYTE_ORDER macro.
    7829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9083      cat >conftest.$ac_ext <<_ACEOF
     9084/* confdefs.h.  */
     9085_ACEOF
     9086cat confdefs.h >>conftest.$ac_ext
     9087cat >>conftest.$ac_ext <<_ACEOF
    78309088/* end confdefs.h.  */
    78319089#include <sys/types.h>
     
    78459103}
    78469104_ACEOF
    7847 if ac_fn_cxx_try_compile "$LINENO"; then :
     9105rm -f conftest.$ac_objext
     9106if { (ac_try="$ac_compile"
     9107case "(($ac_try" in
     9108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9109  *) ac_try_echo=$ac_try;;
     9110esac
     9111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9112$as_echo "$ac_try_echo") >&5
     9113  (eval "$ac_compile") 2>conftest.er1
     9114  ac_status=$?
     9115  grep -v '^ *+' conftest.er1 >conftest.err
     9116  rm -f conftest.er1
     9117  cat conftest.err >&5
     9118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9119  (exit $ac_status); } && {
     9120         test -z "$ac_cxx_werror_flag" ||
     9121         test ! -s conftest.err
     9122       } && test -s conftest.$ac_objext; then
    78489123  # It does; now see whether it defined to BIG_ENDIAN or not.
    7849          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9124         cat >conftest.$ac_ext <<_ACEOF
     9125/* confdefs.h.  */
     9126_ACEOF
     9127cat confdefs.h >>conftest.$ac_ext
     9128cat >>conftest.$ac_ext <<_ACEOF
    78509129/* end confdefs.h.  */
    78519130#include <sys/types.h>
     
    78639142}
    78649143_ACEOF
    7865 if ac_fn_cxx_try_compile "$LINENO"; then :
     9144rm -f conftest.$ac_objext
     9145if { (ac_try="$ac_compile"
     9146case "(($ac_try" in
     9147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9148  *) ac_try_echo=$ac_try;;
     9149esac
     9150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9151$as_echo "$ac_try_echo") >&5
     9152  (eval "$ac_compile") 2>conftest.er1
     9153  ac_status=$?
     9154  grep -v '^ *+' conftest.er1 >conftest.err
     9155  rm -f conftest.er1
     9156  cat conftest.err >&5
     9157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9158  (exit $ac_status); } && {
     9159         test -z "$ac_cxx_werror_flag" ||
     9160         test ! -s conftest.err
     9161       } && test -s conftest.$ac_objext; then
    78669162  ac_cv_c_bigendian=yes
    78679163else
    7868   ac_cv_c_bigendian=no
    7869 fi
     9164  $as_echo "$as_me: failed program was:" >&5
     9165sed 's/^/| /' conftest.$ac_ext >&5
     9166
     9167        ac_cv_c_bigendian=no
     9168fi
     9169
    78709170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    7871 fi
     9171else
     9172  $as_echo "$as_me: failed program was:" >&5
     9173sed 's/^/| /' conftest.$ac_ext >&5
     9174
     9175
     9176fi
     9177
    78729178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    78739179    fi
    78749180    if test $ac_cv_c_bigendian = unknown; then
    78759181      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
    7876       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9182      cat >conftest.$ac_ext <<_ACEOF
     9183/* confdefs.h.  */
     9184_ACEOF
     9185cat confdefs.h >>conftest.$ac_ext
     9186cat >>conftest.$ac_ext <<_ACEOF
    78779187/* end confdefs.h.  */
    78789188#include <limits.h>
     
    78899199}
    78909200_ACEOF
    7891 if ac_fn_cxx_try_compile "$LINENO"; then :
     9201rm -f conftest.$ac_objext
     9202if { (ac_try="$ac_compile"
     9203case "(($ac_try" in
     9204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9205  *) ac_try_echo=$ac_try;;
     9206esac
     9207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9208$as_echo "$ac_try_echo") >&5
     9209  (eval "$ac_compile") 2>conftest.er1
     9210  ac_status=$?
     9211  grep -v '^ *+' conftest.er1 >conftest.err
     9212  rm -f conftest.er1
     9213  cat conftest.err >&5
     9214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9215  (exit $ac_status); } && {
     9216         test -z "$ac_cxx_werror_flag" ||
     9217         test ! -s conftest.err
     9218       } && test -s conftest.$ac_objext; then
    78929219  # It does; now see whether it defined to _BIG_ENDIAN or not.
    7893          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9220         cat >conftest.$ac_ext <<_ACEOF
     9221/* confdefs.h.  */
     9222_ACEOF
     9223cat confdefs.h >>conftest.$ac_ext
     9224cat >>conftest.$ac_ext <<_ACEOF
    78949225/* end confdefs.h.  */
    78959226#include <limits.h>
     
    79069237}
    79079238_ACEOF
    7908 if ac_fn_cxx_try_compile "$LINENO"; then :
     9239rm -f conftest.$ac_objext
     9240if { (ac_try="$ac_compile"
     9241case "(($ac_try" in
     9242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9243  *) ac_try_echo=$ac_try;;
     9244esac
     9245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9246$as_echo "$ac_try_echo") >&5
     9247  (eval "$ac_compile") 2>conftest.er1
     9248  ac_status=$?
     9249  grep -v '^ *+' conftest.er1 >conftest.err
     9250  rm -f conftest.er1
     9251  cat conftest.err >&5
     9252  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9253  (exit $ac_status); } && {
     9254         test -z "$ac_cxx_werror_flag" ||
     9255         test ! -s conftest.err
     9256       } && test -s conftest.$ac_objext; then
    79099257  ac_cv_c_bigendian=yes
    79109258else
    7911   ac_cv_c_bigendian=no
    7912 fi
     9259  $as_echo "$as_me: failed program was:" >&5
     9260sed 's/^/| /' conftest.$ac_ext >&5
     9261
     9262        ac_cv_c_bigendian=no
     9263fi
     9264
    79139265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    7914 fi
     9266else
     9267  $as_echo "$as_me: failed program was:" >&5
     9268sed 's/^/| /' conftest.$ac_ext >&5
     9269
     9270
     9271fi
     9272
    79159273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    79169274    fi
    79179275    if test $ac_cv_c_bigendian = unknown; then
    79189276      # Compile a test program.
    7919       if test "$cross_compiling" = yes; then :
     9277      if test "$cross_compiling" = yes; then
    79209278  # Try to guess by grepping values from an object file.
    7921          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9279         cat >conftest.$ac_ext <<_ACEOF
     9280/* confdefs.h.  */
     9281_ACEOF
     9282cat confdefs.h >>conftest.$ac_ext
     9283cat >>conftest.$ac_ext <<_ACEOF
    79229284/* end confdefs.h.  */
    79239285short int ascii_mm[] =
     
    79459307}
    79469308_ACEOF
    7947 if ac_fn_cxx_try_compile "$LINENO"; then :
     9309rm -f conftest.$ac_objext
     9310if { (ac_try="$ac_compile"
     9311case "(($ac_try" in
     9312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9313  *) ac_try_echo=$ac_try;;
     9314esac
     9315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9316$as_echo "$ac_try_echo") >&5
     9317  (eval "$ac_compile") 2>conftest.er1
     9318  ac_status=$?
     9319  grep -v '^ *+' conftest.er1 >conftest.err
     9320  rm -f conftest.er1
     9321  cat conftest.err >&5
     9322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9323  (exit $ac_status); } && {
     9324         test -z "$ac_cxx_werror_flag" ||
     9325         test ! -s conftest.err
     9326       } && test -s conftest.$ac_objext; then
    79489327  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
    79499328              ac_cv_c_bigendian=yes
     
    79579336              fi
    79589337            fi
    7959 fi
     9338else
     9339  $as_echo "$as_me: failed program was:" >&5
     9340sed 's/^/| /' conftest.$ac_ext >&5
     9341
     9342
     9343fi
     9344
    79609345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    79619346else
    7962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9347  cat >conftest.$ac_ext <<_ACEOF
     9348/* confdefs.h.  */
     9349_ACEOF
     9350cat confdefs.h >>conftest.$ac_ext
     9351cat >>conftest.$ac_ext <<_ACEOF
    79639352/* end confdefs.h.  */
    79649353$ac_includes_default
     
    79809369}
    79819370_ACEOF
    7982 if ac_fn_cxx_try_run "$LINENO"; then :
     9371rm -f conftest$ac_exeext
     9372if { (ac_try="$ac_link"
     9373case "(($ac_try" in
     9374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9375  *) ac_try_echo=$ac_try;;
     9376esac
     9377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9378$as_echo "$ac_try_echo") >&5
     9379  (eval "$ac_link") 2>&5
     9380  ac_status=$?
     9381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9382  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     9383  { (case "(($ac_try" in
     9384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9385  *) ac_try_echo=$ac_try;;
     9386esac
     9387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9388$as_echo "$ac_try_echo") >&5
     9389  (eval "$ac_try") 2>&5
     9390  ac_status=$?
     9391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9392  (exit $ac_status); }; }; then
    79839393  ac_cv_c_bigendian=no
    79849394else
    7985   ac_cv_c_bigendian=yes
    7986 fi
    7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    7988   conftest.$ac_objext conftest.beam conftest.$ac_ext
    7989 fi
     9395  $as_echo "$as_me: program exited with status $ac_status" >&5
     9396$as_echo "$as_me: failed program was:" >&5
     9397sed 's/^/| /' conftest.$ac_ext >&5
     9398
     9399( exit $ac_status )
     9400ac_cv_c_bigendian=yes
     9401fi
     9402rm -rf conftest.dSYM
     9403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     9404fi
     9405
    79909406
    79919407    fi
    79929408fi
    7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
     9409{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
    79949410$as_echo "$ac_cv_c_bigendian" >&6; }
    79959411 case $ac_cv_c_bigendian in #(
    79969412   yes)
    7997      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
     9413     cat >>confdefs.h <<\_ACEOF
     9414#define WORDS_BIGENDIAN 1
     9415_ACEOF
    79989416;; #(
    79999417   no)
     
    80019419   universal)
    80029420
    8003 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
     9421cat >>confdefs.h <<\_ACEOF
     9422#define AC_APPLE_UNIVERSAL_BUILD 1
     9423_ACEOF
    80049424
    80059425     ;; #(
    80069426   *)
    8007      as_fn_error $? "unknown endianness
    8008  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
     9427     { { $as_echo "$as_me:$LINENO: error: unknown endianness
     9428 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
     9429$as_echo "$as_me: error: unknown endianness
     9430 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
     9431   { (exit 1); exit 1; }; } ;;
    80099432 esac
    80109433
     
    80139436# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    80149437# This bug is HP SR number 8606223364.
    8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
     9438{ $as_echo "$as_me:$LINENO: checking size of int" >&5
    80169439$as_echo_n "checking size of int... " >&6; }
    8017 if ${ac_cv_sizeof_int+:} false; then :
     9440if test "${ac_cv_sizeof_int+set}" = set; then
    80189441  $as_echo_n "(cached) " >&6
    80199442else
    8020   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
    8021 
    8022 else
    8023   if test "$ac_cv_type_int" = yes; then
    8024      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     9443  if test "$cross_compiling" = yes; then
     9444  # Depending upon the size, compute the lo and hi bounds.
     9445cat >conftest.$ac_ext <<_ACEOF
     9446/* confdefs.h.  */
     9447_ACEOF
     9448cat confdefs.h >>conftest.$ac_ext
     9449cat >>conftest.$ac_ext <<_ACEOF
     9450/* end confdefs.h.  */
     9451$ac_includes_default
     9452int
     9453main ()
     9454{
     9455static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
     9456test_array [0] = 0
     9457
     9458  ;
     9459  return 0;
     9460}
     9461_ACEOF
     9462rm -f conftest.$ac_objext
     9463if { (ac_try="$ac_compile"
     9464case "(($ac_try" in
     9465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9466  *) ac_try_echo=$ac_try;;
     9467esac
     9468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9469$as_echo "$ac_try_echo") >&5
     9470  (eval "$ac_compile") 2>conftest.er1
     9471  ac_status=$?
     9472  grep -v '^ *+' conftest.er1 >conftest.err
     9473  rm -f conftest.er1
     9474  cat conftest.err >&5
     9475  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9476  (exit $ac_status); } && {
     9477         test -z "$ac_cxx_werror_flag" ||
     9478         test ! -s conftest.err
     9479       } && test -s conftest.$ac_objext; then
     9480  ac_lo=0 ac_mid=0
     9481  while :; do
     9482    cat >conftest.$ac_ext <<_ACEOF
     9483/* confdefs.h.  */
     9484_ACEOF
     9485cat confdefs.h >>conftest.$ac_ext
     9486cat >>conftest.$ac_ext <<_ACEOF
     9487/* end confdefs.h.  */
     9488$ac_includes_default
     9489int
     9490main ()
     9491{
     9492static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
     9493test_array [0] = 0
     9494
     9495  ;
     9496  return 0;
     9497}
     9498_ACEOF
     9499rm -f conftest.$ac_objext
     9500if { (ac_try="$ac_compile"
     9501case "(($ac_try" in
     9502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9503  *) ac_try_echo=$ac_try;;
     9504esac
     9505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9506$as_echo "$ac_try_echo") >&5
     9507  (eval "$ac_compile") 2>conftest.er1
     9508  ac_status=$?
     9509  grep -v '^ *+' conftest.er1 >conftest.err
     9510  rm -f conftest.er1
     9511  cat conftest.err >&5
     9512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9513  (exit $ac_status); } && {
     9514         test -z "$ac_cxx_werror_flag" ||
     9515         test ! -s conftest.err
     9516       } && test -s conftest.$ac_objext; then
     9517  ac_hi=$ac_mid; break
     9518else
     9519  $as_echo "$as_me: failed program was:" >&5
     9520sed 's/^/| /' conftest.$ac_ext >&5
     9521
     9522        ac_lo=`expr $ac_mid + 1`
     9523                        if test $ac_lo -le $ac_mid; then
     9524                          ac_lo= ac_hi=
     9525                          break
     9526                        fi
     9527                        ac_mid=`expr 2 '*' $ac_mid + 1`
     9528fi
     9529
     9530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9531  done
     9532else
     9533  $as_echo "$as_me: failed program was:" >&5
     9534sed 's/^/| /' conftest.$ac_ext >&5
     9535
     9536        cat >conftest.$ac_ext <<_ACEOF
     9537/* confdefs.h.  */
     9538_ACEOF
     9539cat confdefs.h >>conftest.$ac_ext
     9540cat >>conftest.$ac_ext <<_ACEOF
     9541/* end confdefs.h.  */
     9542$ac_includes_default
     9543int
     9544main ()
     9545{
     9546static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
     9547test_array [0] = 0
     9548
     9549  ;
     9550  return 0;
     9551}
     9552_ACEOF
     9553rm -f conftest.$ac_objext
     9554if { (ac_try="$ac_compile"
     9555case "(($ac_try" in
     9556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9557  *) ac_try_echo=$ac_try;;
     9558esac
     9559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9560$as_echo "$ac_try_echo") >&5
     9561  (eval "$ac_compile") 2>conftest.er1
     9562  ac_status=$?
     9563  grep -v '^ *+' conftest.er1 >conftest.err
     9564  rm -f conftest.er1
     9565  cat conftest.err >&5
     9566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9567  (exit $ac_status); } && {
     9568         test -z "$ac_cxx_werror_flag" ||
     9569         test ! -s conftest.err
     9570       } && test -s conftest.$ac_objext; then
     9571  ac_hi=-1 ac_mid=-1
     9572  while :; do
     9573    cat >conftest.$ac_ext <<_ACEOF
     9574/* confdefs.h.  */
     9575_ACEOF
     9576cat confdefs.h >>conftest.$ac_ext
     9577cat >>conftest.$ac_ext <<_ACEOF
     9578/* end confdefs.h.  */
     9579$ac_includes_default
     9580int
     9581main ()
     9582{
     9583static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
     9584test_array [0] = 0
     9585
     9586  ;
     9587  return 0;
     9588}
     9589_ACEOF
     9590rm -f conftest.$ac_objext
     9591if { (ac_try="$ac_compile"
     9592case "(($ac_try" in
     9593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9594  *) ac_try_echo=$ac_try;;
     9595esac
     9596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9597$as_echo "$ac_try_echo") >&5
     9598  (eval "$ac_compile") 2>conftest.er1
     9599  ac_status=$?
     9600  grep -v '^ *+' conftest.er1 >conftest.err
     9601  rm -f conftest.er1
     9602  cat conftest.err >&5
     9603  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9604  (exit $ac_status); } && {
     9605         test -z "$ac_cxx_werror_flag" ||
     9606         test ! -s conftest.err
     9607       } && test -s conftest.$ac_objext; then
     9608  ac_lo=$ac_mid; break
     9609else
     9610  $as_echo "$as_me: failed program was:" >&5
     9611sed 's/^/| /' conftest.$ac_ext >&5
     9612
     9613        ac_hi=`expr '(' $ac_mid ')' - 1`
     9614                        if test $ac_mid -le $ac_hi; then
     9615                          ac_lo= ac_hi=
     9616                          break
     9617                        fi
     9618                        ac_mid=`expr 2 '*' $ac_mid`
     9619fi
     9620
     9621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9622  done
     9623else
     9624  $as_echo "$as_me: failed program was:" >&5
     9625sed 's/^/| /' conftest.$ac_ext >&5
     9626
     9627        ac_lo= ac_hi=
     9628fi
     9629
     9630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9631fi
     9632
     9633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9634# Binary search between lo and hi bounds.
     9635while test "x$ac_lo" != "x$ac_hi"; do
     9636  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     9637  cat >conftest.$ac_ext <<_ACEOF
     9638/* confdefs.h.  */
     9639_ACEOF
     9640cat confdefs.h >>conftest.$ac_ext
     9641cat >>conftest.$ac_ext <<_ACEOF
     9642/* end confdefs.h.  */
     9643$ac_includes_default
     9644int
     9645main ()
     9646{
     9647static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
     9648test_array [0] = 0
     9649
     9650  ;
     9651  return 0;
     9652}
     9653_ACEOF
     9654rm -f conftest.$ac_objext
     9655if { (ac_try="$ac_compile"
     9656case "(($ac_try" in
     9657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9658  *) ac_try_echo=$ac_try;;
     9659esac
     9660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9661$as_echo "$ac_try_echo") >&5
     9662  (eval "$ac_compile") 2>conftest.er1
     9663  ac_status=$?
     9664  grep -v '^ *+' conftest.er1 >conftest.err
     9665  rm -f conftest.er1
     9666  cat conftest.err >&5
     9667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9668  (exit $ac_status); } && {
     9669         test -z "$ac_cxx_werror_flag" ||
     9670         test ! -s conftest.err
     9671       } && test -s conftest.$ac_objext; then
     9672  ac_hi=$ac_mid
     9673else
     9674  $as_echo "$as_me: failed program was:" >&5
     9675sed 's/^/| /' conftest.$ac_ext >&5
     9676
     9677        ac_lo=`expr '(' $ac_mid ')' + 1`
     9678fi
     9679
     9680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9681done
     9682case $ac_lo in
     9683?*) ac_cv_sizeof_int=$ac_lo;;
     9684'') if test "$ac_cv_type_int" = yes; then
     9685     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    80259686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    8026 as_fn_error 77 "cannot compute sizeof (int)
    8027 See \`config.log' for more details" "$LINENO" 5; }
     9687{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
     9688See \`config.log' for more details." >&5
     9689$as_echo "$as_me: error: cannot compute sizeof (int)
     9690See \`config.log' for more details." >&2;}
     9691   { (exit 77); exit 77; }; }; }
     9692   else
     9693     ac_cv_sizeof_int=0
     9694   fi ;;
     9695esac
     9696else
     9697  cat >conftest.$ac_ext <<_ACEOF
     9698/* confdefs.h.  */
     9699_ACEOF
     9700cat confdefs.h >>conftest.$ac_ext
     9701cat >>conftest.$ac_ext <<_ACEOF
     9702/* end confdefs.h.  */
     9703$ac_includes_default
     9704static long int longval () { return (long int) (sizeof (int)); }
     9705static unsigned long int ulongval () { return (long int) (sizeof (int)); }
     9706#include <stdio.h>
     9707#include <stdlib.h>
     9708int
     9709main ()
     9710{
     9711
     9712  FILE *f = fopen ("conftest.val", "w");
     9713  if (! f)
     9714    return 1;
     9715  if (((long int) (sizeof (int))) < 0)
     9716    {
     9717      long int i = longval ();
     9718      if (i != ((long int) (sizeof (int))))
     9719        return 1;
     9720      fprintf (f, "%ld", i);
     9721    }
     9722  else
     9723    {
     9724      unsigned long int i = ulongval ();
     9725      if (i != ((long int) (sizeof (int))))
     9726        return 1;
     9727      fprintf (f, "%lu", i);
     9728    }
     9729  /* Do not output a trailing newline, as this causes \r\n confusion
     9730     on some platforms.  */
     9731  return ferror (f) || fclose (f) != 0;
     9732
     9733  ;
     9734  return 0;
     9735}
     9736_ACEOF
     9737rm -f conftest$ac_exeext
     9738if { (ac_try="$ac_link"
     9739case "(($ac_try" in
     9740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9741  *) ac_try_echo=$ac_try;;
     9742esac
     9743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9744$as_echo "$ac_try_echo") >&5
     9745  (eval "$ac_link") 2>&5
     9746  ac_status=$?
     9747  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9748  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     9749  { (case "(($ac_try" in
     9750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9751  *) ac_try_echo=$ac_try;;
     9752esac
     9753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9754$as_echo "$ac_try_echo") >&5
     9755  (eval "$ac_try") 2>&5
     9756  ac_status=$?
     9757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9758  (exit $ac_status); }; }; then
     9759  ac_cv_sizeof_int=`cat conftest.val`
     9760else
     9761  $as_echo "$as_me: program exited with status $ac_status" >&5
     9762$as_echo "$as_me: failed program was:" >&5
     9763sed 's/^/| /' conftest.$ac_ext >&5
     9764
     9765( exit $ac_status )
     9766if test "$ac_cv_type_int" = yes; then
     9767     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     9768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     9769{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
     9770See \`config.log' for more details." >&5
     9771$as_echo "$as_me: error: cannot compute sizeof (int)
     9772See \`config.log' for more details." >&2;}
     9773   { (exit 77); exit 77; }; }; }
    80289774   else
    80299775     ac_cv_sizeof_int=0
    80309776   fi
    80319777fi
    8032 
    8033 fi
    8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
     9778rm -rf conftest.dSYM
     9779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     9780fi
     9781rm -f conftest.val
     9782fi
     9783{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
    80359784$as_echo "$ac_cv_sizeof_int" >&6; }
    80369785
     
    80469795# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    80479796# This bug is HP SR number 8606223364.
    8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
     9797{ $as_echo "$as_me:$LINENO: checking size of long" >&5
    80499798$as_echo_n "checking size of long... " >&6; }
    8050 if ${ac_cv_sizeof_long+:} false; then :
     9799if test "${ac_cv_sizeof_long+set}" = set; then
    80519800  $as_echo_n "(cached) " >&6
    80529801else
    8053   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
    8054 
    8055 else
    8056   if test "$ac_cv_type_long" = yes; then
    8057      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     9802  if test "$cross_compiling" = yes; then
     9803  # Depending upon the size, compute the lo and hi bounds.
     9804cat >conftest.$ac_ext <<_ACEOF
     9805/* confdefs.h.  */
     9806_ACEOF
     9807cat confdefs.h >>conftest.$ac_ext
     9808cat >>conftest.$ac_ext <<_ACEOF
     9809/* end confdefs.h.  */
     9810$ac_includes_default
     9811int
     9812main ()
     9813{
     9814static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
     9815test_array [0] = 0
     9816
     9817  ;
     9818  return 0;
     9819}
     9820_ACEOF
     9821rm -f conftest.$ac_objext
     9822if { (ac_try="$ac_compile"
     9823case "(($ac_try" in
     9824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9825  *) ac_try_echo=$ac_try;;
     9826esac
     9827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9828$as_echo "$ac_try_echo") >&5
     9829  (eval "$ac_compile") 2>conftest.er1
     9830  ac_status=$?
     9831  grep -v '^ *+' conftest.er1 >conftest.err
     9832  rm -f conftest.er1
     9833  cat conftest.err >&5
     9834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9835  (exit $ac_status); } && {
     9836         test -z "$ac_cxx_werror_flag" ||
     9837         test ! -s conftest.err
     9838       } && test -s conftest.$ac_objext; then
     9839  ac_lo=0 ac_mid=0
     9840  while :; do
     9841    cat >conftest.$ac_ext <<_ACEOF
     9842/* confdefs.h.  */
     9843_ACEOF
     9844cat confdefs.h >>conftest.$ac_ext
     9845cat >>conftest.$ac_ext <<_ACEOF
     9846/* end confdefs.h.  */
     9847$ac_includes_default
     9848int
     9849main ()
     9850{
     9851static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
     9852test_array [0] = 0
     9853
     9854  ;
     9855  return 0;
     9856}
     9857_ACEOF
     9858rm -f conftest.$ac_objext
     9859if { (ac_try="$ac_compile"
     9860case "(($ac_try" in
     9861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9862  *) ac_try_echo=$ac_try;;
     9863esac
     9864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9865$as_echo "$ac_try_echo") >&5
     9866  (eval "$ac_compile") 2>conftest.er1
     9867  ac_status=$?
     9868  grep -v '^ *+' conftest.er1 >conftest.err
     9869  rm -f conftest.er1
     9870  cat conftest.err >&5
     9871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9872  (exit $ac_status); } && {
     9873         test -z "$ac_cxx_werror_flag" ||
     9874         test ! -s conftest.err
     9875       } && test -s conftest.$ac_objext; then
     9876  ac_hi=$ac_mid; break
     9877else
     9878  $as_echo "$as_me: failed program was:" >&5
     9879sed 's/^/| /' conftest.$ac_ext >&5
     9880
     9881        ac_lo=`expr $ac_mid + 1`
     9882                        if test $ac_lo -le $ac_mid; then
     9883                          ac_lo= ac_hi=
     9884                          break
     9885                        fi
     9886                        ac_mid=`expr 2 '*' $ac_mid + 1`
     9887fi
     9888
     9889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9890  done
     9891else
     9892  $as_echo "$as_me: failed program was:" >&5
     9893sed 's/^/| /' conftest.$ac_ext >&5
     9894
     9895        cat >conftest.$ac_ext <<_ACEOF
     9896/* confdefs.h.  */
     9897_ACEOF
     9898cat confdefs.h >>conftest.$ac_ext
     9899cat >>conftest.$ac_ext <<_ACEOF
     9900/* end confdefs.h.  */
     9901$ac_includes_default
     9902int
     9903main ()
     9904{
     9905static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
     9906test_array [0] = 0
     9907
     9908  ;
     9909  return 0;
     9910}
     9911_ACEOF
     9912rm -f conftest.$ac_objext
     9913if { (ac_try="$ac_compile"
     9914case "(($ac_try" in
     9915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9916  *) ac_try_echo=$ac_try;;
     9917esac
     9918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9919$as_echo "$ac_try_echo") >&5
     9920  (eval "$ac_compile") 2>conftest.er1
     9921  ac_status=$?
     9922  grep -v '^ *+' conftest.er1 >conftest.err
     9923  rm -f conftest.er1
     9924  cat conftest.err >&5
     9925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9926  (exit $ac_status); } && {
     9927         test -z "$ac_cxx_werror_flag" ||
     9928         test ! -s conftest.err
     9929       } && test -s conftest.$ac_objext; then
     9930  ac_hi=-1 ac_mid=-1
     9931  while :; do
     9932    cat >conftest.$ac_ext <<_ACEOF
     9933/* confdefs.h.  */
     9934_ACEOF
     9935cat confdefs.h >>conftest.$ac_ext
     9936cat >>conftest.$ac_ext <<_ACEOF
     9937/* end confdefs.h.  */
     9938$ac_includes_default
     9939int
     9940main ()
     9941{
     9942static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
     9943test_array [0] = 0
     9944
     9945  ;
     9946  return 0;
     9947}
     9948_ACEOF
     9949rm -f conftest.$ac_objext
     9950if { (ac_try="$ac_compile"
     9951case "(($ac_try" in
     9952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     9953  *) ac_try_echo=$ac_try;;
     9954esac
     9955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     9956$as_echo "$ac_try_echo") >&5
     9957  (eval "$ac_compile") 2>conftest.er1
     9958  ac_status=$?
     9959  grep -v '^ *+' conftest.er1 >conftest.err
     9960  rm -f conftest.er1
     9961  cat conftest.err >&5
     9962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9963  (exit $ac_status); } && {
     9964         test -z "$ac_cxx_werror_flag" ||
     9965         test ! -s conftest.err
     9966       } && test -s conftest.$ac_objext; then
     9967  ac_lo=$ac_mid; break
     9968else
     9969  $as_echo "$as_me: failed program was:" >&5
     9970sed 's/^/| /' conftest.$ac_ext >&5
     9971
     9972        ac_hi=`expr '(' $ac_mid ')' - 1`
     9973                        if test $ac_mid -le $ac_hi; then
     9974                          ac_lo= ac_hi=
     9975                          break
     9976                        fi
     9977                        ac_mid=`expr 2 '*' $ac_mid`
     9978fi
     9979
     9980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9981  done
     9982else
     9983  $as_echo "$as_me: failed program was:" >&5
     9984sed 's/^/| /' conftest.$ac_ext >&5
     9985
     9986        ac_lo= ac_hi=
     9987fi
     9988
     9989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9990fi
     9991
     9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     9993# Binary search between lo and hi bounds.
     9994while test "x$ac_lo" != "x$ac_hi"; do
     9995  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     9996  cat >conftest.$ac_ext <<_ACEOF
     9997/* confdefs.h.  */
     9998_ACEOF
     9999cat confdefs.h >>conftest.$ac_ext
     10000cat >>conftest.$ac_ext <<_ACEOF
     10001/* end confdefs.h.  */
     10002$ac_includes_default
     10003int
     10004main ()
     10005{
     10006static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
     10007test_array [0] = 0
     10008
     10009  ;
     10010  return 0;
     10011}
     10012_ACEOF
     10013rm -f conftest.$ac_objext
     10014if { (ac_try="$ac_compile"
     10015case "(($ac_try" in
     10016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10017  *) ac_try_echo=$ac_try;;
     10018esac
     10019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10020$as_echo "$ac_try_echo") >&5
     10021  (eval "$ac_compile") 2>conftest.er1
     10022  ac_status=$?
     10023  grep -v '^ *+' conftest.er1 >conftest.err
     10024  rm -f conftest.er1
     10025  cat conftest.err >&5
     10026  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10027  (exit $ac_status); } && {
     10028         test -z "$ac_cxx_werror_flag" ||
     10029         test ! -s conftest.err
     10030       } && test -s conftest.$ac_objext; then
     10031  ac_hi=$ac_mid
     10032else
     10033  $as_echo "$as_me: failed program was:" >&5
     10034sed 's/^/| /' conftest.$ac_ext >&5
     10035
     10036        ac_lo=`expr '(' $ac_mid ')' + 1`
     10037fi
     10038
     10039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10040done
     10041case $ac_lo in
     10042?*) ac_cv_sizeof_long=$ac_lo;;
     10043'') if test "$ac_cv_type_long" = yes; then
     10044     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    805810045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    8059 as_fn_error 77 "cannot compute sizeof (long)
    8060 See \`config.log' for more details" "$LINENO" 5; }
     10046{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
     10047See \`config.log' for more details." >&5
     10048$as_echo "$as_me: error: cannot compute sizeof (long)
     10049See \`config.log' for more details." >&2;}
     10050   { (exit 77); exit 77; }; }; }
     10051   else
     10052     ac_cv_sizeof_long=0
     10053   fi ;;
     10054esac
     10055else
     10056  cat >conftest.$ac_ext <<_ACEOF
     10057/* confdefs.h.  */
     10058_ACEOF
     10059cat confdefs.h >>conftest.$ac_ext
     10060cat >>conftest.$ac_ext <<_ACEOF
     10061/* end confdefs.h.  */
     10062$ac_includes_default
     10063static long int longval () { return (long int) (sizeof (long)); }
     10064static unsigned long int ulongval () { return (long int) (sizeof (long)); }
     10065#include <stdio.h>
     10066#include <stdlib.h>
     10067int
     10068main ()
     10069{
     10070
     10071  FILE *f = fopen ("conftest.val", "w");
     10072  if (! f)
     10073    return 1;
     10074  if (((long int) (sizeof (long))) < 0)
     10075    {
     10076      long int i = longval ();
     10077      if (i != ((long int) (sizeof (long))))
     10078        return 1;
     10079      fprintf (f, "%ld", i);
     10080    }
     10081  else
     10082    {
     10083      unsigned long int i = ulongval ();
     10084      if (i != ((long int) (sizeof (long))))
     10085        return 1;
     10086      fprintf (f, "%lu", i);
     10087    }
     10088  /* Do not output a trailing newline, as this causes \r\n confusion
     10089     on some platforms.  */
     10090  return ferror (f) || fclose (f) != 0;
     10091
     10092  ;
     10093  return 0;
     10094}
     10095_ACEOF
     10096rm -f conftest$ac_exeext
     10097if { (ac_try="$ac_link"
     10098case "(($ac_try" in
     10099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10100  *) ac_try_echo=$ac_try;;
     10101esac
     10102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10103$as_echo "$ac_try_echo") >&5
     10104  (eval "$ac_link") 2>&5
     10105  ac_status=$?
     10106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10107  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     10108  { (case "(($ac_try" in
     10109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10110  *) ac_try_echo=$ac_try;;
     10111esac
     10112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10113$as_echo "$ac_try_echo") >&5
     10114  (eval "$ac_try") 2>&5
     10115  ac_status=$?
     10116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10117  (exit $ac_status); }; }; then
     10118  ac_cv_sizeof_long=`cat conftest.val`
     10119else
     10120  $as_echo "$as_me: program exited with status $ac_status" >&5
     10121$as_echo "$as_me: failed program was:" >&5
     10122sed 's/^/| /' conftest.$ac_ext >&5
     10123
     10124( exit $ac_status )
     10125if test "$ac_cv_type_long" = yes; then
     10126     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     10127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     10128{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
     10129See \`config.log' for more details." >&5
     10130$as_echo "$as_me: error: cannot compute sizeof (long)
     10131See \`config.log' for more details." >&2;}
     10132   { (exit 77); exit 77; }; }; }
    806110133   else
    806210134     ac_cv_sizeof_long=0
    806310135   fi
    806410136fi
    8065 
    8066 fi
    8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
     10137rm -rf conftest.dSYM
     10138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     10139fi
     10140rm -f conftest.val
     10141fi
     10142{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
    806810143$as_echo "$ac_cv_sizeof_long" >&6; }
    806910144
     
    807910154# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    808010155# This bug is HP SR number 8606223364.
    8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
     10156{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
    808210157$as_echo_n "checking size of long long... " >&6; }
    8083 if ${ac_cv_sizeof_long_long+:} false; then :
     10158if test "${ac_cv_sizeof_long_long+set}" = set; then
    808410159  $as_echo_n "(cached) " >&6
    808510160else
    8086   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
    8087 
    8088 else
    8089   if test "$ac_cv_type_long_long" = yes; then
    8090      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     10161  if test "$cross_compiling" = yes; then
     10162  # Depending upon the size, compute the lo and hi bounds.
     10163cat >conftest.$ac_ext <<_ACEOF
     10164/* confdefs.h.  */
     10165_ACEOF
     10166cat confdefs.h >>conftest.$ac_ext
     10167cat >>conftest.$ac_ext <<_ACEOF
     10168/* end confdefs.h.  */
     10169$ac_includes_default
     10170int
     10171main ()
     10172{
     10173static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
     10174test_array [0] = 0
     10175
     10176  ;
     10177  return 0;
     10178}
     10179_ACEOF
     10180rm -f conftest.$ac_objext
     10181if { (ac_try="$ac_compile"
     10182case "(($ac_try" in
     10183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10184  *) ac_try_echo=$ac_try;;
     10185esac
     10186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10187$as_echo "$ac_try_echo") >&5
     10188  (eval "$ac_compile") 2>conftest.er1
     10189  ac_status=$?
     10190  grep -v '^ *+' conftest.er1 >conftest.err
     10191  rm -f conftest.er1
     10192  cat conftest.err >&5
     10193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10194  (exit $ac_status); } && {
     10195         test -z "$ac_cxx_werror_flag" ||
     10196         test ! -s conftest.err
     10197       } && test -s conftest.$ac_objext; then
     10198  ac_lo=0 ac_mid=0
     10199  while :; do
     10200    cat >conftest.$ac_ext <<_ACEOF
     10201/* confdefs.h.  */
     10202_ACEOF
     10203cat confdefs.h >>conftest.$ac_ext
     10204cat >>conftest.$ac_ext <<_ACEOF
     10205/* end confdefs.h.  */
     10206$ac_includes_default
     10207int
     10208main ()
     10209{
     10210static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
     10211test_array [0] = 0
     10212
     10213  ;
     10214  return 0;
     10215}
     10216_ACEOF
     10217rm -f conftest.$ac_objext
     10218if { (ac_try="$ac_compile"
     10219case "(($ac_try" in
     10220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10221  *) ac_try_echo=$ac_try;;
     10222esac
     10223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10224$as_echo "$ac_try_echo") >&5
     10225  (eval "$ac_compile") 2>conftest.er1
     10226  ac_status=$?
     10227  grep -v '^ *+' conftest.er1 >conftest.err
     10228  rm -f conftest.er1
     10229  cat conftest.err >&5
     10230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10231  (exit $ac_status); } && {
     10232         test -z "$ac_cxx_werror_flag" ||
     10233         test ! -s conftest.err
     10234       } && test -s conftest.$ac_objext; then
     10235  ac_hi=$ac_mid; break
     10236else
     10237  $as_echo "$as_me: failed program was:" >&5
     10238sed 's/^/| /' conftest.$ac_ext >&5
     10239
     10240        ac_lo=`expr $ac_mid + 1`
     10241                        if test $ac_lo -le $ac_mid; then
     10242                          ac_lo= ac_hi=
     10243                          break
     10244                        fi
     10245                        ac_mid=`expr 2 '*' $ac_mid + 1`
     10246fi
     10247
     10248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10249  done
     10250else
     10251  $as_echo "$as_me: failed program was:" >&5
     10252sed 's/^/| /' conftest.$ac_ext >&5
     10253
     10254        cat >conftest.$ac_ext <<_ACEOF
     10255/* confdefs.h.  */
     10256_ACEOF
     10257cat confdefs.h >>conftest.$ac_ext
     10258cat >>conftest.$ac_ext <<_ACEOF
     10259/* end confdefs.h.  */
     10260$ac_includes_default
     10261int
     10262main ()
     10263{
     10264static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
     10265test_array [0] = 0
     10266
     10267  ;
     10268  return 0;
     10269}
     10270_ACEOF
     10271rm -f conftest.$ac_objext
     10272if { (ac_try="$ac_compile"
     10273case "(($ac_try" in
     10274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10275  *) ac_try_echo=$ac_try;;
     10276esac
     10277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10278$as_echo "$ac_try_echo") >&5
     10279  (eval "$ac_compile") 2>conftest.er1
     10280  ac_status=$?
     10281  grep -v '^ *+' conftest.er1 >conftest.err
     10282  rm -f conftest.er1
     10283  cat conftest.err >&5
     10284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10285  (exit $ac_status); } && {
     10286         test -z "$ac_cxx_werror_flag" ||
     10287         test ! -s conftest.err
     10288       } && test -s conftest.$ac_objext; then
     10289  ac_hi=-1 ac_mid=-1
     10290  while :; do
     10291    cat >conftest.$ac_ext <<_ACEOF
     10292/* confdefs.h.  */
     10293_ACEOF
     10294cat confdefs.h >>conftest.$ac_ext
     10295cat >>conftest.$ac_ext <<_ACEOF
     10296/* end confdefs.h.  */
     10297$ac_includes_default
     10298int
     10299main ()
     10300{
     10301static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
     10302test_array [0] = 0
     10303
     10304  ;
     10305  return 0;
     10306}
     10307_ACEOF
     10308rm -f conftest.$ac_objext
     10309if { (ac_try="$ac_compile"
     10310case "(($ac_try" in
     10311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10312  *) ac_try_echo=$ac_try;;
     10313esac
     10314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10315$as_echo "$ac_try_echo") >&5
     10316  (eval "$ac_compile") 2>conftest.er1
     10317  ac_status=$?
     10318  grep -v '^ *+' conftest.er1 >conftest.err
     10319  rm -f conftest.er1
     10320  cat conftest.err >&5
     10321  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10322  (exit $ac_status); } && {
     10323         test -z "$ac_cxx_werror_flag" ||
     10324         test ! -s conftest.err
     10325       } && test -s conftest.$ac_objext; then
     10326  ac_lo=$ac_mid; break
     10327else
     10328  $as_echo "$as_me: failed program was:" >&5
     10329sed 's/^/| /' conftest.$ac_ext >&5
     10330
     10331        ac_hi=`expr '(' $ac_mid ')' - 1`
     10332                        if test $ac_mid -le $ac_hi; then
     10333                          ac_lo= ac_hi=
     10334                          break
     10335                        fi
     10336                        ac_mid=`expr 2 '*' $ac_mid`
     10337fi
     10338
     10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10340  done
     10341else
     10342  $as_echo "$as_me: failed program was:" >&5
     10343sed 's/^/| /' conftest.$ac_ext >&5
     10344
     10345        ac_lo= ac_hi=
     10346fi
     10347
     10348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10349fi
     10350
     10351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10352# Binary search between lo and hi bounds.
     10353while test "x$ac_lo" != "x$ac_hi"; do
     10354  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     10355  cat >conftest.$ac_ext <<_ACEOF
     10356/* confdefs.h.  */
     10357_ACEOF
     10358cat confdefs.h >>conftest.$ac_ext
     10359cat >>conftest.$ac_ext <<_ACEOF
     10360/* end confdefs.h.  */
     10361$ac_includes_default
     10362int
     10363main ()
     10364{
     10365static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
     10366test_array [0] = 0
     10367
     10368  ;
     10369  return 0;
     10370}
     10371_ACEOF
     10372rm -f conftest.$ac_objext
     10373if { (ac_try="$ac_compile"
     10374case "(($ac_try" in
     10375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10376  *) ac_try_echo=$ac_try;;
     10377esac
     10378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10379$as_echo "$ac_try_echo") >&5
     10380  (eval "$ac_compile") 2>conftest.er1
     10381  ac_status=$?
     10382  grep -v '^ *+' conftest.er1 >conftest.err
     10383  rm -f conftest.er1
     10384  cat conftest.err >&5
     10385  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10386  (exit $ac_status); } && {
     10387         test -z "$ac_cxx_werror_flag" ||
     10388         test ! -s conftest.err
     10389       } && test -s conftest.$ac_objext; then
     10390  ac_hi=$ac_mid
     10391else
     10392  $as_echo "$as_me: failed program was:" >&5
     10393sed 's/^/| /' conftest.$ac_ext >&5
     10394
     10395        ac_lo=`expr '(' $ac_mid ')' + 1`
     10396fi
     10397
     10398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10399done
     10400case $ac_lo in
     10401?*) ac_cv_sizeof_long_long=$ac_lo;;
     10402'') if test "$ac_cv_type_long_long" = yes; then
     10403     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    809110404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    8092 as_fn_error 77 "cannot compute sizeof (long long)
    8093 See \`config.log' for more details" "$LINENO" 5; }
     10405{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
     10406See \`config.log' for more details." >&5
     10407$as_echo "$as_me: error: cannot compute sizeof (long long)
     10408See \`config.log' for more details." >&2;}
     10409   { (exit 77); exit 77; }; }; }
     10410   else
     10411     ac_cv_sizeof_long_long=0
     10412   fi ;;
     10413esac
     10414else
     10415  cat >conftest.$ac_ext <<_ACEOF
     10416/* confdefs.h.  */
     10417_ACEOF
     10418cat confdefs.h >>conftest.$ac_ext
     10419cat >>conftest.$ac_ext <<_ACEOF
     10420/* end confdefs.h.  */
     10421$ac_includes_default
     10422static long int longval () { return (long int) (sizeof (long long)); }
     10423static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
     10424#include <stdio.h>
     10425#include <stdlib.h>
     10426int
     10427main ()
     10428{
     10429
     10430  FILE *f = fopen ("conftest.val", "w");
     10431  if (! f)
     10432    return 1;
     10433  if (((long int) (sizeof (long long))) < 0)
     10434    {
     10435      long int i = longval ();
     10436      if (i != ((long int) (sizeof (long long))))
     10437        return 1;
     10438      fprintf (f, "%ld", i);
     10439    }
     10440  else
     10441    {
     10442      unsigned long int i = ulongval ();
     10443      if (i != ((long int) (sizeof (long long))))
     10444        return 1;
     10445      fprintf (f, "%lu", i);
     10446    }
     10447  /* Do not output a trailing newline, as this causes \r\n confusion
     10448     on some platforms.  */
     10449  return ferror (f) || fclose (f) != 0;
     10450
     10451  ;
     10452  return 0;
     10453}
     10454_ACEOF
     10455rm -f conftest$ac_exeext
     10456if { (ac_try="$ac_link"
     10457case "(($ac_try" in
     10458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10459  *) ac_try_echo=$ac_try;;
     10460esac
     10461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10462$as_echo "$ac_try_echo") >&5
     10463  (eval "$ac_link") 2>&5
     10464  ac_status=$?
     10465  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10466  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     10467  { (case "(($ac_try" in
     10468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10469  *) ac_try_echo=$ac_try;;
     10470esac
     10471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10472$as_echo "$ac_try_echo") >&5
     10473  (eval "$ac_try") 2>&5
     10474  ac_status=$?
     10475  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10476  (exit $ac_status); }; }; then
     10477  ac_cv_sizeof_long_long=`cat conftest.val`
     10478else
     10479  $as_echo "$as_me: program exited with status $ac_status" >&5
     10480$as_echo "$as_me: failed program was:" >&5
     10481sed 's/^/| /' conftest.$ac_ext >&5
     10482
     10483( exit $ac_status )
     10484if test "$ac_cv_type_long_long" = yes; then
     10485     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     10486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     10487{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
     10488See \`config.log' for more details." >&5
     10489$as_echo "$as_me: error: cannot compute sizeof (long long)
     10490See \`config.log' for more details." >&2;}
     10491   { (exit 77); exit 77; }; }; }
    809410492   else
    809510493     ac_cv_sizeof_long_long=0
    809610494   fi
    809710495fi
    8098 
    8099 fi
    8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
     10496rm -rf conftest.dSYM
     10497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     10498fi
     10499rm -f conftest.val
     10500fi
     10501{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
    810110502$as_echo "$ac_cv_sizeof_long_long" >&6; }
    810210503
     
    811210513# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    811310514# This bug is HP SR number 8606223364.
    8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
     10515{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
    811510516$as_echo_n "checking size of void *... " >&6; }
    8116 if ${ac_cv_sizeof_void_p+:} false; then :
     10517if test "${ac_cv_sizeof_void_p+set}" = set; then
    811710518  $as_echo_n "(cached) " >&6
    811810519else
    8119   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
    8120 
    8121 else
    8122   if test "$ac_cv_type_void_p" = yes; then
    8123      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     10520  if test "$cross_compiling" = yes; then
     10521  # Depending upon the size, compute the lo and hi bounds.
     10522cat >conftest.$ac_ext <<_ACEOF
     10523/* confdefs.h.  */
     10524_ACEOF
     10525cat confdefs.h >>conftest.$ac_ext
     10526cat >>conftest.$ac_ext <<_ACEOF
     10527/* end confdefs.h.  */
     10528$ac_includes_default
     10529int
     10530main ()
     10531{
     10532static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
     10533test_array [0] = 0
     10534
     10535  ;
     10536  return 0;
     10537}
     10538_ACEOF
     10539rm -f conftest.$ac_objext
     10540if { (ac_try="$ac_compile"
     10541case "(($ac_try" in
     10542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10543  *) ac_try_echo=$ac_try;;
     10544esac
     10545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10546$as_echo "$ac_try_echo") >&5
     10547  (eval "$ac_compile") 2>conftest.er1
     10548  ac_status=$?
     10549  grep -v '^ *+' conftest.er1 >conftest.err
     10550  rm -f conftest.er1
     10551  cat conftest.err >&5
     10552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10553  (exit $ac_status); } && {
     10554         test -z "$ac_cxx_werror_flag" ||
     10555         test ! -s conftest.err
     10556       } && test -s conftest.$ac_objext; then
     10557  ac_lo=0 ac_mid=0
     10558  while :; do
     10559    cat >conftest.$ac_ext <<_ACEOF
     10560/* confdefs.h.  */
     10561_ACEOF
     10562cat confdefs.h >>conftest.$ac_ext
     10563cat >>conftest.$ac_ext <<_ACEOF
     10564/* end confdefs.h.  */
     10565$ac_includes_default
     10566int
     10567main ()
     10568{
     10569static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
     10570test_array [0] = 0
     10571
     10572  ;
     10573  return 0;
     10574}
     10575_ACEOF
     10576rm -f conftest.$ac_objext
     10577if { (ac_try="$ac_compile"
     10578case "(($ac_try" in
     10579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10580  *) ac_try_echo=$ac_try;;
     10581esac
     10582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10583$as_echo "$ac_try_echo") >&5
     10584  (eval "$ac_compile") 2>conftest.er1
     10585  ac_status=$?
     10586  grep -v '^ *+' conftest.er1 >conftest.err
     10587  rm -f conftest.er1
     10588  cat conftest.err >&5
     10589  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10590  (exit $ac_status); } && {
     10591         test -z "$ac_cxx_werror_flag" ||
     10592         test ! -s conftest.err
     10593       } && test -s conftest.$ac_objext; then
     10594  ac_hi=$ac_mid; break
     10595else
     10596  $as_echo "$as_me: failed program was:" >&5
     10597sed 's/^/| /' conftest.$ac_ext >&5
     10598
     10599        ac_lo=`expr $ac_mid + 1`
     10600                        if test $ac_lo -le $ac_mid; then
     10601                          ac_lo= ac_hi=
     10602                          break
     10603                        fi
     10604                        ac_mid=`expr 2 '*' $ac_mid + 1`
     10605fi
     10606
     10607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10608  done
     10609else
     10610  $as_echo "$as_me: failed program was:" >&5
     10611sed 's/^/| /' conftest.$ac_ext >&5
     10612
     10613        cat >conftest.$ac_ext <<_ACEOF
     10614/* confdefs.h.  */
     10615_ACEOF
     10616cat confdefs.h >>conftest.$ac_ext
     10617cat >>conftest.$ac_ext <<_ACEOF
     10618/* end confdefs.h.  */
     10619$ac_includes_default
     10620int
     10621main ()
     10622{
     10623static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
     10624test_array [0] = 0
     10625
     10626  ;
     10627  return 0;
     10628}
     10629_ACEOF
     10630rm -f conftest.$ac_objext
     10631if { (ac_try="$ac_compile"
     10632case "(($ac_try" in
     10633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10634  *) ac_try_echo=$ac_try;;
     10635esac
     10636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10637$as_echo "$ac_try_echo") >&5
     10638  (eval "$ac_compile") 2>conftest.er1
     10639  ac_status=$?
     10640  grep -v '^ *+' conftest.er1 >conftest.err
     10641  rm -f conftest.er1
     10642  cat conftest.err >&5
     10643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10644  (exit $ac_status); } && {
     10645         test -z "$ac_cxx_werror_flag" ||
     10646         test ! -s conftest.err
     10647       } && test -s conftest.$ac_objext; then
     10648  ac_hi=-1 ac_mid=-1
     10649  while :; do
     10650    cat >conftest.$ac_ext <<_ACEOF
     10651/* confdefs.h.  */
     10652_ACEOF
     10653cat confdefs.h >>conftest.$ac_ext
     10654cat >>conftest.$ac_ext <<_ACEOF
     10655/* end confdefs.h.  */
     10656$ac_includes_default
     10657int
     10658main ()
     10659{
     10660static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
     10661test_array [0] = 0
     10662
     10663  ;
     10664  return 0;
     10665}
     10666_ACEOF
     10667rm -f conftest.$ac_objext
     10668if { (ac_try="$ac_compile"
     10669case "(($ac_try" in
     10670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10671  *) ac_try_echo=$ac_try;;
     10672esac
     10673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10674$as_echo "$ac_try_echo") >&5
     10675  (eval "$ac_compile") 2>conftest.er1
     10676  ac_status=$?
     10677  grep -v '^ *+' conftest.er1 >conftest.err
     10678  rm -f conftest.er1
     10679  cat conftest.err >&5
     10680  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10681  (exit $ac_status); } && {
     10682         test -z "$ac_cxx_werror_flag" ||
     10683         test ! -s conftest.err
     10684       } && test -s conftest.$ac_objext; then
     10685  ac_lo=$ac_mid; break
     10686else
     10687  $as_echo "$as_me: failed program was:" >&5
     10688sed 's/^/| /' conftest.$ac_ext >&5
     10689
     10690        ac_hi=`expr '(' $ac_mid ')' - 1`
     10691                        if test $ac_mid -le $ac_hi; then
     10692                          ac_lo= ac_hi=
     10693                          break
     10694                        fi
     10695                        ac_mid=`expr 2 '*' $ac_mid`
     10696fi
     10697
     10698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10699  done
     10700else
     10701  $as_echo "$as_me: failed program was:" >&5
     10702sed 's/^/| /' conftest.$ac_ext >&5
     10703
     10704        ac_lo= ac_hi=
     10705fi
     10706
     10707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10708fi
     10709
     10710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10711# Binary search between lo and hi bounds.
     10712while test "x$ac_lo" != "x$ac_hi"; do
     10713  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     10714  cat >conftest.$ac_ext <<_ACEOF
     10715/* confdefs.h.  */
     10716_ACEOF
     10717cat confdefs.h >>conftest.$ac_ext
     10718cat >>conftest.$ac_ext <<_ACEOF
     10719/* end confdefs.h.  */
     10720$ac_includes_default
     10721int
     10722main ()
     10723{
     10724static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
     10725test_array [0] = 0
     10726
     10727  ;
     10728  return 0;
     10729}
     10730_ACEOF
     10731rm -f conftest.$ac_objext
     10732if { (ac_try="$ac_compile"
     10733case "(($ac_try" in
     10734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10735  *) ac_try_echo=$ac_try;;
     10736esac
     10737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10738$as_echo "$ac_try_echo") >&5
     10739  (eval "$ac_compile") 2>conftest.er1
     10740  ac_status=$?
     10741  grep -v '^ *+' conftest.er1 >conftest.err
     10742  rm -f conftest.er1
     10743  cat conftest.err >&5
     10744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10745  (exit $ac_status); } && {
     10746         test -z "$ac_cxx_werror_flag" ||
     10747         test ! -s conftest.err
     10748       } && test -s conftest.$ac_objext; then
     10749  ac_hi=$ac_mid
     10750else
     10751  $as_echo "$as_me: failed program was:" >&5
     10752sed 's/^/| /' conftest.$ac_ext >&5
     10753
     10754        ac_lo=`expr '(' $ac_mid ')' + 1`
     10755fi
     10756
     10757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10758done
     10759case $ac_lo in
     10760?*) ac_cv_sizeof_void_p=$ac_lo;;
     10761'') if test "$ac_cv_type_void_p" = yes; then
     10762     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    812410763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    8125 as_fn_error 77 "cannot compute sizeof (void *)
    8126 See \`config.log' for more details" "$LINENO" 5; }
     10764{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
     10765See \`config.log' for more details." >&5
     10766$as_echo "$as_me: error: cannot compute sizeof (void *)
     10767See \`config.log' for more details." >&2;}
     10768   { (exit 77); exit 77; }; }; }
     10769   else
     10770     ac_cv_sizeof_void_p=0
     10771   fi ;;
     10772esac
     10773else
     10774  cat >conftest.$ac_ext <<_ACEOF
     10775/* confdefs.h.  */
     10776_ACEOF
     10777cat confdefs.h >>conftest.$ac_ext
     10778cat >>conftest.$ac_ext <<_ACEOF
     10779/* end confdefs.h.  */
     10780$ac_includes_default
     10781static long int longval () { return (long int) (sizeof (void *)); }
     10782static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
     10783#include <stdio.h>
     10784#include <stdlib.h>
     10785int
     10786main ()
     10787{
     10788
     10789  FILE *f = fopen ("conftest.val", "w");
     10790  if (! f)
     10791    return 1;
     10792  if (((long int) (sizeof (void *))) < 0)
     10793    {
     10794      long int i = longval ();
     10795      if (i != ((long int) (sizeof (void *))))
     10796        return 1;
     10797      fprintf (f, "%ld", i);
     10798    }
     10799  else
     10800    {
     10801      unsigned long int i = ulongval ();
     10802      if (i != ((long int) (sizeof (void *))))
     10803        return 1;
     10804      fprintf (f, "%lu", i);
     10805    }
     10806  /* Do not output a trailing newline, as this causes \r\n confusion
     10807     on some platforms.  */
     10808  return ferror (f) || fclose (f) != 0;
     10809
     10810  ;
     10811  return 0;
     10812}
     10813_ACEOF
     10814rm -f conftest$ac_exeext
     10815if { (ac_try="$ac_link"
     10816case "(($ac_try" in
     10817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10818  *) ac_try_echo=$ac_try;;
     10819esac
     10820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10821$as_echo "$ac_try_echo") >&5
     10822  (eval "$ac_link") 2>&5
     10823  ac_status=$?
     10824  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10825  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     10826  { (case "(($ac_try" in
     10827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10828  *) ac_try_echo=$ac_try;;
     10829esac
     10830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10831$as_echo "$ac_try_echo") >&5
     10832  (eval "$ac_try") 2>&5
     10833  ac_status=$?
     10834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10835  (exit $ac_status); }; }; then
     10836  ac_cv_sizeof_void_p=`cat conftest.val`
     10837else
     10838  $as_echo "$as_me: program exited with status $ac_status" >&5
     10839$as_echo "$as_me: failed program was:" >&5
     10840sed 's/^/| /' conftest.$ac_ext >&5
     10841
     10842( exit $ac_status )
     10843if test "$ac_cv_type_void_p" = yes; then
     10844     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     10845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     10846{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
     10847See \`config.log' for more details." >&5
     10848$as_echo "$as_me: error: cannot compute sizeof (void *)
     10849See \`config.log' for more details." >&2;}
     10850   { (exit 77); exit 77; }; }; }
    812710851   else
    812810852     ac_cv_sizeof_void_p=0
    812910853   fi
    813010854fi
    8131 
    8132 fi
    8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
     10855rm -rf conftest.dSYM
     10856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     10857fi
     10858rm -f conftest.val
     10859fi
     10860{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
    813410861$as_echo "$ac_cv_sizeof_void_p" >&6; }
    813510862
     
    814510872# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    814610873# This bug is HP SR number 8606223364.
    8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
     10874{ $as_echo "$as_me:$LINENO: checking size of float" >&5
    814810875$as_echo_n "checking size of float... " >&6; }
    8149 if ${ac_cv_sizeof_float+:} false; then :
     10876if test "${ac_cv_sizeof_float+set}" = set; then
    815010877  $as_echo_n "(cached) " >&6
    815110878else
    8152   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
    8153 
    8154 else
    8155   if test "$ac_cv_type_float" = yes; then
    8156      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     10879  if test "$cross_compiling" = yes; then
     10880  # Depending upon the size, compute the lo and hi bounds.
     10881cat >conftest.$ac_ext <<_ACEOF
     10882/* confdefs.h.  */
     10883_ACEOF
     10884cat confdefs.h >>conftest.$ac_ext
     10885cat >>conftest.$ac_ext <<_ACEOF
     10886/* end confdefs.h.  */
     10887$ac_includes_default
     10888int
     10889main ()
     10890{
     10891static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
     10892test_array [0] = 0
     10893
     10894  ;
     10895  return 0;
     10896}
     10897_ACEOF
     10898rm -f conftest.$ac_objext
     10899if { (ac_try="$ac_compile"
     10900case "(($ac_try" in
     10901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10902  *) ac_try_echo=$ac_try;;
     10903esac
     10904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10905$as_echo "$ac_try_echo") >&5
     10906  (eval "$ac_compile") 2>conftest.er1
     10907  ac_status=$?
     10908  grep -v '^ *+' conftest.er1 >conftest.err
     10909  rm -f conftest.er1
     10910  cat conftest.err >&5
     10911  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10912  (exit $ac_status); } && {
     10913         test -z "$ac_cxx_werror_flag" ||
     10914         test ! -s conftest.err
     10915       } && test -s conftest.$ac_objext; then
     10916  ac_lo=0 ac_mid=0
     10917  while :; do
     10918    cat >conftest.$ac_ext <<_ACEOF
     10919/* confdefs.h.  */
     10920_ACEOF
     10921cat confdefs.h >>conftest.$ac_ext
     10922cat >>conftest.$ac_ext <<_ACEOF
     10923/* end confdefs.h.  */
     10924$ac_includes_default
     10925int
     10926main ()
     10927{
     10928static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
     10929test_array [0] = 0
     10930
     10931  ;
     10932  return 0;
     10933}
     10934_ACEOF
     10935rm -f conftest.$ac_objext
     10936if { (ac_try="$ac_compile"
     10937case "(($ac_try" in
     10938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10939  *) ac_try_echo=$ac_try;;
     10940esac
     10941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10942$as_echo "$ac_try_echo") >&5
     10943  (eval "$ac_compile") 2>conftest.er1
     10944  ac_status=$?
     10945  grep -v '^ *+' conftest.er1 >conftest.err
     10946  rm -f conftest.er1
     10947  cat conftest.err >&5
     10948  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     10949  (exit $ac_status); } && {
     10950         test -z "$ac_cxx_werror_flag" ||
     10951         test ! -s conftest.err
     10952       } && test -s conftest.$ac_objext; then
     10953  ac_hi=$ac_mid; break
     10954else
     10955  $as_echo "$as_me: failed program was:" >&5
     10956sed 's/^/| /' conftest.$ac_ext >&5
     10957
     10958        ac_lo=`expr $ac_mid + 1`
     10959                        if test $ac_lo -le $ac_mid; then
     10960                          ac_lo= ac_hi=
     10961                          break
     10962                        fi
     10963                        ac_mid=`expr 2 '*' $ac_mid + 1`
     10964fi
     10965
     10966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10967  done
     10968else
     10969  $as_echo "$as_me: failed program was:" >&5
     10970sed 's/^/| /' conftest.$ac_ext >&5
     10971
     10972        cat >conftest.$ac_ext <<_ACEOF
     10973/* confdefs.h.  */
     10974_ACEOF
     10975cat confdefs.h >>conftest.$ac_ext
     10976cat >>conftest.$ac_ext <<_ACEOF
     10977/* end confdefs.h.  */
     10978$ac_includes_default
     10979int
     10980main ()
     10981{
     10982static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
     10983test_array [0] = 0
     10984
     10985  ;
     10986  return 0;
     10987}
     10988_ACEOF
     10989rm -f conftest.$ac_objext
     10990if { (ac_try="$ac_compile"
     10991case "(($ac_try" in
     10992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     10993  *) ac_try_echo=$ac_try;;
     10994esac
     10995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     10996$as_echo "$ac_try_echo") >&5
     10997  (eval "$ac_compile") 2>conftest.er1
     10998  ac_status=$?
     10999  grep -v '^ *+' conftest.er1 >conftest.err
     11000  rm -f conftest.er1
     11001  cat conftest.err >&5
     11002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11003  (exit $ac_status); } && {
     11004         test -z "$ac_cxx_werror_flag" ||
     11005         test ! -s conftest.err
     11006       } && test -s conftest.$ac_objext; then
     11007  ac_hi=-1 ac_mid=-1
     11008  while :; do
     11009    cat >conftest.$ac_ext <<_ACEOF
     11010/* confdefs.h.  */
     11011_ACEOF
     11012cat confdefs.h >>conftest.$ac_ext
     11013cat >>conftest.$ac_ext <<_ACEOF
     11014/* end confdefs.h.  */
     11015$ac_includes_default
     11016int
     11017main ()
     11018{
     11019static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
     11020test_array [0] = 0
     11021
     11022  ;
     11023  return 0;
     11024}
     11025_ACEOF
     11026rm -f conftest.$ac_objext
     11027if { (ac_try="$ac_compile"
     11028case "(($ac_try" in
     11029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11030  *) ac_try_echo=$ac_try;;
     11031esac
     11032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11033$as_echo "$ac_try_echo") >&5
     11034  (eval "$ac_compile") 2>conftest.er1
     11035  ac_status=$?
     11036  grep -v '^ *+' conftest.er1 >conftest.err
     11037  rm -f conftest.er1
     11038  cat conftest.err >&5
     11039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11040  (exit $ac_status); } && {
     11041         test -z "$ac_cxx_werror_flag" ||
     11042         test ! -s conftest.err
     11043       } && test -s conftest.$ac_objext; then
     11044  ac_lo=$ac_mid; break
     11045else
     11046  $as_echo "$as_me: failed program was:" >&5
     11047sed 's/^/| /' conftest.$ac_ext >&5
     11048
     11049        ac_hi=`expr '(' $ac_mid ')' - 1`
     11050                        if test $ac_mid -le $ac_hi; then
     11051                          ac_lo= ac_hi=
     11052                          break
     11053                        fi
     11054                        ac_mid=`expr 2 '*' $ac_mid`
     11055fi
     11056
     11057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     11058  done
     11059else
     11060  $as_echo "$as_me: failed program was:" >&5
     11061sed 's/^/| /' conftest.$ac_ext >&5
     11062
     11063        ac_lo= ac_hi=
     11064fi
     11065
     11066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     11067fi
     11068
     11069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     11070# Binary search between lo and hi bounds.
     11071while test "x$ac_lo" != "x$ac_hi"; do
     11072  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     11073  cat >conftest.$ac_ext <<_ACEOF
     11074/* confdefs.h.  */
     11075_ACEOF
     11076cat confdefs.h >>conftest.$ac_ext
     11077cat >>conftest.$ac_ext <<_ACEOF
     11078/* end confdefs.h.  */
     11079$ac_includes_default
     11080int
     11081main ()
     11082{
     11083static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
     11084test_array [0] = 0
     11085
     11086  ;
     11087  return 0;
     11088}
     11089_ACEOF
     11090rm -f conftest.$ac_objext
     11091if { (ac_try="$ac_compile"
     11092case "(($ac_try" in
     11093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11094  *) ac_try_echo=$ac_try;;
     11095esac
     11096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11097$as_echo "$ac_try_echo") >&5
     11098  (eval "$ac_compile") 2>conftest.er1
     11099  ac_status=$?
     11100  grep -v '^ *+' conftest.er1 >conftest.err
     11101  rm -f conftest.er1
     11102  cat conftest.err >&5
     11103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11104  (exit $ac_status); } && {
     11105         test -z "$ac_cxx_werror_flag" ||
     11106         test ! -s conftest.err
     11107       } && test -s conftest.$ac_objext; then
     11108  ac_hi=$ac_mid
     11109else
     11110  $as_echo "$as_me: failed program was:" >&5
     11111sed 's/^/| /' conftest.$ac_ext >&5
     11112
     11113        ac_lo=`expr '(' $ac_mid ')' + 1`
     11114fi
     11115
     11116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     11117done
     11118case $ac_lo in
     11119?*) ac_cv_sizeof_float=$ac_lo;;
     11120'') if test "$ac_cv_type_float" = yes; then
     11121     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    815711122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    8158 as_fn_error 77 "cannot compute sizeof (float)
    8159 See \`config.log' for more details" "$LINENO" 5; }
     11123{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
     11124See \`config.log' for more details." >&5
     11125$as_echo "$as_me: error: cannot compute sizeof (float)
     11126See \`config.log' for more details." >&2;}
     11127   { (exit 77); exit 77; }; }; }
     11128   else
     11129     ac_cv_sizeof_float=0
     11130   fi ;;
     11131esac
     11132else
     11133  cat >conftest.$ac_ext <<_ACEOF
     11134/* confdefs.h.  */
     11135_ACEOF
     11136cat confdefs.h >>conftest.$ac_ext
     11137cat >>conftest.$ac_ext <<_ACEOF
     11138/* end confdefs.h.  */
     11139$ac_includes_default
     11140static long int longval () { return (long int) (sizeof (float)); }
     11141static unsigned long int ulongval () { return (long int) (sizeof (float)); }
     11142#include <stdio.h>
     11143#include <stdlib.h>
     11144int
     11145main ()
     11146{
     11147
     11148  FILE *f = fopen ("conftest.val", "w");
     11149  if (! f)
     11150    return 1;
     11151  if (((long int) (sizeof (float))) < 0)
     11152    {
     11153      long int i = longval ();
     11154      if (i != ((long int) (sizeof (float))))
     11155        return 1;
     11156      fprintf (f, "%ld", i);
     11157    }
     11158  else
     11159    {
     11160      unsigned long int i = ulongval ();
     11161      if (i != ((long int) (sizeof (float))))
     11162        return 1;
     11163      fprintf (f, "%lu", i);
     11164    }
     11165  /* Do not output a trailing newline, as this causes \r\n confusion
     11166     on some platforms.  */
     11167  return ferror (f) || fclose (f) != 0;
     11168
     11169  ;
     11170  return 0;
     11171}
     11172_ACEOF
     11173rm -f conftest$ac_exeext
     11174if { (ac_try="$ac_link"
     11175case "(($ac_try" in
     11176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11177  *) ac_try_echo=$ac_try;;
     11178esac
     11179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11180$as_echo "$ac_try_echo") >&5
     11181  (eval "$ac_link") 2>&5
     11182  ac_status=$?
     11183  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11184  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     11185  { (case "(($ac_try" in
     11186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11187  *) ac_try_echo=$ac_try;;
     11188esac
     11189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11190$as_echo "$ac_try_echo") >&5
     11191  (eval "$ac_try") 2>&5
     11192  ac_status=$?
     11193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11194  (exit $ac_status); }; }; then
     11195  ac_cv_sizeof_float=`cat conftest.val`
     11196else
     11197  $as_echo "$as_me: program exited with status $ac_status" >&5
     11198$as_echo "$as_me: failed program was:" >&5
     11199sed 's/^/| /' conftest.$ac_ext >&5
     11200
     11201( exit $ac_status )
     11202if test "$ac_cv_type_float" = yes; then
     11203     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     11204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     11205{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
     11206See \`config.log' for more details." >&5
     11207$as_echo "$as_me: error: cannot compute sizeof (float)
     11208See \`config.log' for more details." >&2;}
     11209   { (exit 77); exit 77; }; }; }
    816011210   else
    816111211     ac_cv_sizeof_float=0
    816211212   fi
    816311213fi
    8164 
    8165 fi
    8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
     11214rm -rf conftest.dSYM
     11215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     11216fi
     11217rm -f conftest.val
     11218fi
     11219{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
    816711220$as_echo "$ac_cv_sizeof_float" >&6; }
    816811221
     
    822211275
    822311276RP_DIR=""
    8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rappture" >&5
     11277{ $as_echo "$as_me:$LINENO: checking for rappture" >&5
    822511278$as_echo_n "checking for rappture... " >&6; }
    822611279if test "$with_rappture" == "yes" ; then
     
    823111284      RP_INC_SPEC="-I$dir/include -I$dir/include/rappture2"
    823211285      RP_LIB_DIR="$dir/lib"
    8233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5
     11286      { $as_echo "$as_me:$LINENO: result: $dir" >&5
    823411287$as_echo "$dir" >&6; }
    823511288      break
     
    823811291else
    823911292  if test ! -d "$with_rappture" ; then
    8240     as_fn_error $? "--with-rappture: no such directory $with_rappture" "$LINENO" 5
     11293    { { $as_echo "$as_me:$LINENO: error: --with-rappture: no such directory $with_rappture" >&5
     11294$as_echo "$as_me: error: --with-rappture: no such directory $with_rappture" >&2;}
     11295   { (exit 1); exit 1; }; }
    824111296  fi
    824211297  RP_DIR=$with_rappture
     
    824511300fi
    824611301if test "x${RP_DIR}" = "x" ; then
    8247   as_fn_error $? "cannot find rappture.h and librappture2.a, try using --with-rappture" "$LINENO" 5
    8248 else
    8249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_rappture" >&5
     11302  { { $as_echo "$as_me:$LINENO: error: cannot find rappture.h and librappture2.a, try using --with-rappture" >&5
     11303$as_echo "$as_me: error: cannot find rappture.h and librappture2.a, try using --with-rappture" >&2;}
     11304   { (exit 1); exit 1; }; }
     11305else
     11306  { $as_echo "$as_me:$LINENO: result: $with_rappture" >&5
    825011307$as_echo "$with_rappture" >&6; }
    825111308fi
     
    827811335CPPFLAGS=$VTK_INC_SPEC
    827911336
     11337
    828011338for ac_header in vtkSmartPointer.h
    8281 do :
    8282   ac_fn_cxx_check_header_mongrel "$LINENO" "vtkSmartPointer.h" "ac_cv_header_vtkSmartPointer_h" "$ac_includes_default"
    8283 if test "x$ac_cv_header_vtkSmartPointer_h" = xyes; then :
    8284   cat >>confdefs.h <<_ACEOF
    8285 #define HAVE_VTKSMARTPOINTER_H 1
    8286 _ACEOF
    8287 
    8288 else
    8289   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find vtkSmartPointer.h" >&5
    8290 $as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;}
    8291 fi
    8292 
    8293 done
    8294 
    8295 CPPFLAGS=$save_CPPFLAGS
    8296 
    8297 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glui.h" "ac_cv_header_GL_glui_h" "$ac_includes_default"
    8298 if test "x$ac_cv_header_GL_glui_h" = xyes; then :
    8299 
    8300 fi
    8301 
    8302 
    8303 ac_fn_cxx_check_header_mongrel "$LINENO" "glui.h" "ac_cv_header_glui_h" "$ac_includes_default"
    8304 if test "x$ac_cv_header_glui_h" = xyes; then :
    8305 
    8306 fi
    8307 
    8308 
    8309 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"
    8310 if test "x$ac_cv_header_GL_glut_h" = xyes; then :
    8311 
    8312 fi
    8313 
    8314 
    8315 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default"
    8316 if test "x$ac_cv_header_GL_glew_h" = xyes; then :
    8317 
    8318 fi
    8319 
    8320 
    8321 
    8322 for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h
    8323 do :
    8324   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    8325 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
    8326 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     11339do
     11340as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     11341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     11342  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     11343$as_echo_n "checking for $ac_header... " >&6; }
     11344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     11345  $as_echo_n "(cached) " >&6
     11346fi
     11347ac_res=`eval 'as_val=${'$as_ac_Header'}
     11348                 $as_echo "$as_val"'`
     11349               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     11350$as_echo "$ac_res" >&6; }
     11351else
     11352  # Is the header compilable?
     11353{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     11354$as_echo_n "checking $ac_header usability... " >&6; }
     11355cat >conftest.$ac_ext <<_ACEOF
     11356/* confdefs.h.  */
     11357_ACEOF
     11358cat confdefs.h >>conftest.$ac_ext
     11359cat >>conftest.$ac_ext <<_ACEOF
     11360/* end confdefs.h.  */
     11361$ac_includes_default
     11362#include <$ac_header>
     11363_ACEOF
     11364rm -f conftest.$ac_objext
     11365if { (ac_try="$ac_compile"
     11366case "(($ac_try" in
     11367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11368  *) ac_try_echo=$ac_try;;
     11369esac
     11370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11371$as_echo "$ac_try_echo") >&5
     11372  (eval "$ac_compile") 2>conftest.er1
     11373  ac_status=$?
     11374  grep -v '^ *+' conftest.er1 >conftest.err
     11375  rm -f conftest.er1
     11376  cat conftest.err >&5
     11377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11378  (exit $ac_status); } && {
     11379         test -z "$ac_cxx_werror_flag" ||
     11380         test ! -s conftest.err
     11381       } && test -s conftest.$ac_objext; then
     11382  ac_header_compiler=yes
     11383else
     11384  $as_echo "$as_me: failed program was:" >&5
     11385sed 's/^/| /' conftest.$ac_ext >&5
     11386
     11387        ac_header_compiler=no
     11388fi
     11389
     11390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     11391{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     11392$as_echo "$ac_header_compiler" >&6; }
     11393
     11394# Is the header present?
     11395{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     11396$as_echo_n "checking $ac_header presence... " >&6; }
     11397cat >conftest.$ac_ext <<_ACEOF
     11398/* confdefs.h.  */
     11399_ACEOF
     11400cat confdefs.h >>conftest.$ac_ext
     11401cat >>conftest.$ac_ext <<_ACEOF
     11402/* end confdefs.h.  */
     11403#include <$ac_header>
     11404_ACEOF
     11405if { (ac_try="$ac_cpp conftest.$ac_ext"
     11406case "(($ac_try" in
     11407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11408  *) ac_try_echo=$ac_try;;
     11409esac
     11410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11411$as_echo "$ac_try_echo") >&5
     11412  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     11413  ac_status=$?
     11414  grep -v '^ *+' conftest.er1 >conftest.err
     11415  rm -f conftest.er1
     11416  cat conftest.err >&5
     11417  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11418  (exit $ac_status); } >/dev/null && {
     11419         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     11420         test ! -s conftest.err
     11421       }; then
     11422  ac_header_preproc=yes
     11423else
     11424  $as_echo "$as_me: failed program was:" >&5
     11425sed 's/^/| /' conftest.$ac_ext >&5
     11426
     11427  ac_header_preproc=no
     11428fi
     11429
     11430rm -f conftest.err conftest.$ac_ext
     11431{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     11432$as_echo "$ac_header_preproc" >&6; }
     11433
     11434# So?  What about this header?
     11435case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     11436  yes:no: )
     11437    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     11438$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     11439    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     11440$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     11441    ac_header_preproc=yes
     11442    ;;
     11443  no:yes:* )
     11444    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     11445$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     11446    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     11447$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     11448    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     11449$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     11450    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     11451$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     11452    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     11453$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     11454    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     11455$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     11456    ( cat <<\_ASBOX
     11457## ----------------------------------- ##
     11458## Report this to rappture@nanohub.org ##
     11459## ----------------------------------- ##
     11460_ASBOX
     11461     ) | sed "s/^/$as_me: WARNING:     /" >&2
     11462    ;;
     11463esac
     11464{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     11465$as_echo_n "checking for $ac_header... " >&6; }
     11466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     11467  $as_echo_n "(cached) " >&6
     11468else
     11469  eval "$as_ac_Header=\$ac_header_preproc"
     11470fi
     11471ac_res=`eval 'as_val=${'$as_ac_Header'}
     11472                 $as_echo "$as_val"'`
     11473               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     11474$as_echo "$ac_res" >&6; }
     11475
     11476fi
     11477as_val=`eval 'as_val=${'$as_ac_Header'}
     11478                 $as_echo "$as_val"'`
     11479   if test "x$as_val" = x""yes; then
    832711480  cat >>confdefs.h <<_ACEOF
    832811481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    832911482_ACEOF
    833011483
     11484else
     11485  { $as_echo "$as_me:$LINENO: WARNING: cannot find vtkSmartPointer.h" >&5
     11486$as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;}
    833111487fi
    833211488
    833311489done
    833411490
    8335 for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h
    8336 do :
    8337   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    8338 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
    8339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     11491CPPFLAGS=$save_CPPFLAGS
     11492
     11493if test "${ac_cv_header_GL_glui_h+set}" = set; then
     11494  { $as_echo "$as_me:$LINENO: checking for GL/glui.h" >&5
     11495$as_echo_n "checking for GL/glui.h... " >&6; }
     11496if test "${ac_cv_header_GL_glui_h+set}" = set; then
     11497  $as_echo_n "(cached) " >&6
     11498fi
     11499{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glui_h" >&5
     11500$as_echo "$ac_cv_header_GL_glui_h" >&6; }
     11501else
     11502  # Is the header compilable?
     11503{ $as_echo "$as_me:$LINENO: checking GL/glui.h usability" >&5
     11504$as_echo_n "checking GL/glui.h usability... " >&6; }
     11505cat >conftest.$ac_ext <<_ACEOF
     11506/* confdefs.h.  */
     11507_ACEOF
     11508cat confdefs.h >>conftest.$ac_ext
     11509cat >>conftest.$ac_ext <<_ACEOF
     11510/* end confdefs.h.  */
     11511$ac_includes_default
     11512#include <GL/glui.h>
     11513_ACEOF
     11514rm -f conftest.$ac_objext
     11515if { (ac_try="$ac_compile"
     11516case "(($ac_try" in
     11517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11518  *) ac_try_echo=$ac_try;;
     11519esac
     11520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11521$as_echo "$ac_try_echo") >&5
     11522  (eval "$ac_compile") 2>conftest.er1
     11523  ac_status=$?
     11524  grep -v '^ *+' conftest.er1 >conftest.err
     11525  rm -f conftest.er1
     11526  cat conftest.err >&5
     11527  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11528  (exit $ac_status); } && {
     11529         test -z "$ac_cxx_werror_flag" ||
     11530         test ! -s conftest.err
     11531       } && test -s conftest.$ac_objext; then
     11532  ac_header_compiler=yes
     11533else
     11534  $as_echo "$as_me: failed program was:" >&5
     11535sed 's/^/| /' conftest.$ac_ext >&5
     11536
     11537        ac_header_compiler=no
     11538fi
     11539
     11540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     11541{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     11542$as_echo "$ac_header_compiler" >&6; }
     11543
     11544# Is the header present?
     11545{ $as_echo "$as_me:$LINENO: checking GL/glui.h presence" >&5
     11546$as_echo_n "checking GL/glui.h presence... " >&6; }
     11547cat >conftest.$ac_ext <<_ACEOF
     11548/* confdefs.h.  */
     11549_ACEOF
     11550cat confdefs.h >>conftest.$ac_ext
     11551cat >>conftest.$ac_ext <<_ACEOF
     11552/* end confdefs.h.  */
     11553#include <GL/glui.h>
     11554_ACEOF
     11555if { (ac_try="$ac_cpp conftest.$ac_ext"
     11556case "(($ac_try" in
     11557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11558  *) ac_try_echo=$ac_try;;
     11559esac
     11560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11561$as_echo "$ac_try_echo") >&5
     11562  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     11563  ac_status=$?
     11564  grep -v '^ *+' conftest.er1 >conftest.err
     11565  rm -f conftest.er1
     11566  cat conftest.err >&5
     11567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11568  (exit $ac_status); } >/dev/null && {
     11569         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     11570         test ! -s conftest.err
     11571       }; then
     11572  ac_header_preproc=yes
     11573else
     11574  $as_echo "$as_me: failed program was:" >&5
     11575sed 's/^/| /' conftest.$ac_ext >&5
     11576
     11577  ac_header_preproc=no
     11578fi
     11579
     11580rm -f conftest.err conftest.$ac_ext
     11581{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     11582$as_echo "$ac_header_preproc" >&6; }
     11583
     11584# So?  What about this header?
     11585case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     11586  yes:no: )
     11587    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: accepted by the compiler, rejected by the preprocessor!" >&5
     11588$as_echo "$as_me: WARNING: GL/glui.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     11589    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: proceeding with the compiler's result" >&5
     11590$as_echo "$as_me: WARNING: GL/glui.h: proceeding with the compiler's result" >&2;}
     11591    ac_header_preproc=yes
     11592    ;;
     11593  no:yes:* )
     11594    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: present but cannot be compiled" >&5
     11595$as_echo "$as_me: WARNING: GL/glui.h: present but cannot be compiled" >&2;}
     11596    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h:     check for missing prerequisite headers?" >&5
     11597$as_echo "$as_me: WARNING: GL/glui.h:     check for missing prerequisite headers?" >&2;}
     11598    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: see the Autoconf documentation" >&5
     11599$as_echo "$as_me: WARNING: GL/glui.h: see the Autoconf documentation" >&2;}
     11600    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h:     section \"Present But Cannot Be Compiled\"" >&5
     11601$as_echo "$as_me: WARNING: GL/glui.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     11602    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: proceeding with the preprocessor's result" >&5
     11603$as_echo "$as_me: WARNING: GL/glui.h: proceeding with the preprocessor's result" >&2;}
     11604    { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: in the future, the compiler will take precedence" >&5
     11605$as_echo "$as_me: WARNING: GL/glui.h: in the future, the compiler will take precedence" >&2;}
     11606    ( cat <<\_ASBOX
     11607## ----------------------------------- ##
     11608## Report this to rappture@nanohub.org ##
     11609## ----------------------------------- ##
     11610_ASBOX
     11611     ) | sed "s/^/$as_me: WARNING:     /" >&2
     11612    ;;
     11613esac
     11614{ $as_echo "$as_me:$LINENO: checking for GL/glui.h" >&5
     11615$as_echo_n "checking for GL/glui.h... " >&6; }
     11616if test "${ac_cv_header_GL_glui_h+set}" = set; then
     11617  $as_echo_n "(cached) " >&6
     11618else
     11619  ac_cv_header_GL_glui_h=$ac_header_preproc
     11620fi
     11621{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glui_h" >&5
     11622$as_echo "$ac_cv_header_GL_glui_h" >&6; }
     11623
     11624fi
     11625
     11626
     11627if test "${ac_cv_header_glui_h+set}" = set; then
     11628  { $as_echo "$as_me:$LINENO: checking for glui.h" >&5
     11629$as_echo_n "checking for glui.h... " >&6; }
     11630if test "${ac_cv_header_glui_h+set}" = set; then
     11631  $as_echo_n "(cached) " >&6
     11632fi
     11633{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_glui_h" >&5
     11634$as_echo "$ac_cv_header_glui_h" >&6; }
     11635else
     11636  # Is the header compilable?
     11637{ $as_echo "$as_me:$LINENO: checking glui.h usability" >&5
     11638$as_echo_n "checking glui.h usability... " >&6; }
     11639cat >conftest.$ac_ext <<_ACEOF
     11640/* confdefs.h.  */
     11641_ACEOF
     11642cat confdefs.h >>conftest.$ac_ext
     11643cat >>conftest.$ac_ext <<_ACEOF
     11644/* end confdefs.h.  */
     11645$ac_includes_default
     11646#include <glui.h>
     11647_ACEOF
     11648rm -f conftest.$ac_objext
     11649if { (ac_try="$ac_compile"
     11650case "(($ac_try" in
     11651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11652  *) ac_try_echo=$ac_try;;
     11653esac
     11654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11655$as_echo "$ac_try_echo") >&5
     11656  (eval "$ac_compile") 2>conftest.er1
     11657  ac_status=$?
     11658  grep -v '^ *+' conftest.er1 >conftest.err
     11659  rm -f conftest.er1
     11660  cat conftest.err >&5
     11661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11662  (exit $ac_status); } && {
     11663         test -z "$ac_cxx_werror_flag" ||
     11664         test ! -s conftest.err
     11665       } && test -s conftest.$ac_objext; then
     11666  ac_header_compiler=yes
     11667else
     11668  $as_echo "$as_me: failed program was:" >&5
     11669sed 's/^/| /' conftest.$ac_ext >&5
     11670
     11671        ac_header_compiler=no
     11672fi
     11673
     11674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     11675{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     11676$as_echo "$ac_header_compiler" >&6; }
     11677
     11678# Is the header present?
     11679{ $as_echo "$as_me:$LINENO: checking glui.h presence" >&5
     11680$as_echo_n "checking glui.h presence... " >&6; }
     11681cat >conftest.$ac_ext <<_ACEOF
     11682/* confdefs.h.  */
     11683_ACEOF
     11684cat confdefs.h >>conftest.$ac_ext
     11685cat >>conftest.$ac_ext <<_ACEOF
     11686/* end confdefs.h.  */
     11687#include <glui.h>
     11688_ACEOF
     11689if { (ac_try="$ac_cpp conftest.$ac_ext"
     11690case "(($ac_try" in
     11691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11692  *) ac_try_echo=$ac_try;;
     11693esac
     11694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11695$as_echo "$ac_try_echo") >&5
     11696  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     11697  ac_status=$?
     11698  grep -v '^ *+' conftest.er1 >conftest.err
     11699  rm -f conftest.er1
     11700  cat conftest.err >&5
     11701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11702  (exit $ac_status); } >/dev/null && {
     11703         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     11704         test ! -s conftest.err
     11705       }; then
     11706  ac_header_preproc=yes
     11707else
     11708  $as_echo "$as_me: failed program was:" >&5
     11709sed 's/^/| /' conftest.$ac_ext >&5
     11710
     11711  ac_header_preproc=no
     11712fi
     11713
     11714rm -f conftest.err conftest.$ac_ext
     11715{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     11716$as_echo "$ac_header_preproc" >&6; }
     11717
     11718# So?  What about this header?
     11719case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     11720  yes:no: )
     11721    { $as_echo "$as_me:$LINENO: WARNING: glui.h: accepted by the compiler, rejected by the preprocessor!" >&5
     11722$as_echo "$as_me: WARNING: glui.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     11723    { $as_echo "$as_me:$LINENO: WARNING: glui.h: proceeding with the compiler's result" >&5
     11724$as_echo "$as_me: WARNING: glui.h: proceeding with the compiler's result" >&2;}
     11725    ac_header_preproc=yes
     11726    ;;
     11727  no:yes:* )
     11728    { $as_echo "$as_me:$LINENO: WARNING: glui.h: present but cannot be compiled" >&5
     11729$as_echo "$as_me: WARNING: glui.h: present but cannot be compiled" >&2;}
     11730    { $as_echo "$as_me:$LINENO: WARNING: glui.h:     check for missing prerequisite headers?" >&5
     11731$as_echo "$as_me: WARNING: glui.h:     check for missing prerequisite headers?" >&2;}
     11732    { $as_echo "$as_me:$LINENO: WARNING: glui.h: see the Autoconf documentation" >&5
     11733$as_echo "$as_me: WARNING: glui.h: see the Autoconf documentation" >&2;}
     11734    { $as_echo "$as_me:$LINENO: WARNING: glui.h:     section \"Present But Cannot Be Compiled\"" >&5
     11735$as_echo "$as_me: WARNING: glui.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     11736    { $as_echo "$as_me:$LINENO: WARNING: glui.h: proceeding with the preprocessor's result" >&5
     11737$as_echo "$as_me: WARNING: glui.h: proceeding with the preprocessor's result" >&2;}
     11738    { $as_echo "$as_me:$LINENO: WARNING: glui.h: in the future, the compiler will take precedence" >&5
     11739$as_echo "$as_me: WARNING: glui.h: in the future, the compiler will take precedence" >&2;}
     11740    ( cat <<\_ASBOX
     11741## ----------------------------------- ##
     11742## Report this to rappture@nanohub.org ##
     11743## ----------------------------------- ##
     11744_ASBOX
     11745     ) | sed "s/^/$as_me: WARNING:     /" >&2
     11746    ;;
     11747esac
     11748{ $as_echo "$as_me:$LINENO: checking for glui.h" >&5
     11749$as_echo_n "checking for glui.h... " >&6; }
     11750if test "${ac_cv_header_glui_h+set}" = set; then
     11751  $as_echo_n "(cached) " >&6
     11752else
     11753  ac_cv_header_glui_h=$ac_header_preproc
     11754fi
     11755{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_glui_h" >&5
     11756$as_echo "$ac_cv_header_glui_h" >&6; }
     11757
     11758fi
     11759
     11760
     11761if test "${ac_cv_header_GL_glut_h+set}" = set; then
     11762  { $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
     11763$as_echo_n "checking for GL/glut.h... " >&6; }
     11764if test "${ac_cv_header_GL_glut_h+set}" = set; then
     11765  $as_echo_n "(cached) " >&6
     11766fi
     11767{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
     11768$as_echo "$ac_cv_header_GL_glut_h" >&6; }
     11769else
     11770  # Is the header compilable?
     11771{ $as_echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
     11772$as_echo_n "checking GL/glut.h usability... " >&6; }
     11773cat >conftest.$ac_ext <<_ACEOF
     11774/* confdefs.h.  */
     11775_ACEOF
     11776cat confdefs.h >>conftest.$ac_ext
     11777cat >>conftest.$ac_ext <<_ACEOF
     11778/* end confdefs.h.  */
     11779$ac_includes_default
     11780#include <GL/glut.h>
     11781_ACEOF
     11782rm -f conftest.$ac_objext
     11783if { (ac_try="$ac_compile"
     11784case "(($ac_try" in
     11785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11786  *) ac_try_echo=$ac_try;;
     11787esac
     11788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11789$as_echo "$ac_try_echo") >&5
     11790  (eval "$ac_compile") 2>conftest.er1
     11791  ac_status=$?
     11792  grep -v '^ *+' conftest.er1 >conftest.err
     11793  rm -f conftest.er1
     11794  cat conftest.err >&5
     11795  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11796  (exit $ac_status); } && {
     11797         test -z "$ac_cxx_werror_flag" ||
     11798         test ! -s conftest.err
     11799       } && test -s conftest.$ac_objext; then
     11800  ac_header_compiler=yes
     11801else
     11802  $as_echo "$as_me: failed program was:" >&5
     11803sed 's/^/| /' conftest.$ac_ext >&5
     11804
     11805        ac_header_compiler=no
     11806fi
     11807
     11808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     11809{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     11810$as_echo "$ac_header_compiler" >&6; }
     11811
     11812# Is the header present?
     11813{ $as_echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
     11814$as_echo_n "checking GL/glut.h presence... " >&6; }
     11815cat >conftest.$ac_ext <<_ACEOF
     11816/* confdefs.h.  */
     11817_ACEOF
     11818cat confdefs.h >>conftest.$ac_ext
     11819cat >>conftest.$ac_ext <<_ACEOF
     11820/* end confdefs.h.  */
     11821#include <GL/glut.h>
     11822_ACEOF
     11823if { (ac_try="$ac_cpp conftest.$ac_ext"
     11824case "(($ac_try" in
     11825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11826  *) ac_try_echo=$ac_try;;
     11827esac
     11828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11829$as_echo "$ac_try_echo") >&5
     11830  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     11831  ac_status=$?
     11832  grep -v '^ *+' conftest.er1 >conftest.err
     11833  rm -f conftest.er1
     11834  cat conftest.err >&5
     11835  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11836  (exit $ac_status); } >/dev/null && {
     11837         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     11838         test ! -s conftest.err
     11839       }; then
     11840  ac_header_preproc=yes
     11841else
     11842  $as_echo "$as_me: failed program was:" >&5
     11843sed 's/^/| /' conftest.$ac_ext >&5
     11844
     11845  ac_header_preproc=no
     11846fi
     11847
     11848rm -f conftest.err conftest.$ac_ext
     11849{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     11850$as_echo "$ac_header_preproc" >&6; }
     11851
     11852# So?  What about this header?
     11853case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     11854  yes:no: )
     11855    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
     11856$as_echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     11857    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5
     11858$as_echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;}
     11859    ac_header_preproc=yes
     11860    ;;
     11861  no:yes:* )
     11862    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
     11863$as_echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
     11864    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&5
     11865$as_echo "$as_me: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&2;}
     11866    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5
     11867$as_echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;}
     11868    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&5
     11869$as_echo "$as_me: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     11870    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
     11871$as_echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
     11872    { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5
     11873$as_echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;}
     11874    ( cat <<\_ASBOX
     11875## ----------------------------------- ##
     11876## Report this to rappture@nanohub.org ##
     11877## ----------------------------------- ##
     11878_ASBOX
     11879     ) | sed "s/^/$as_me: WARNING:     /" >&2
     11880    ;;
     11881esac
     11882{ $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
     11883$as_echo_n "checking for GL/glut.h... " >&6; }
     11884if test "${ac_cv_header_GL_glut_h+set}" = set; then
     11885  $as_echo_n "(cached) " >&6
     11886else
     11887  ac_cv_header_GL_glut_h=$ac_header_preproc
     11888fi
     11889{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
     11890$as_echo "$ac_cv_header_GL_glut_h" >&6; }
     11891
     11892fi
     11893
     11894
     11895if test "${ac_cv_header_GL_glew_h+set}" = set; then
     11896  { $as_echo "$as_me:$LINENO: checking for GL/glew.h" >&5
     11897$as_echo_n "checking for GL/glew.h... " >&6; }
     11898if test "${ac_cv_header_GL_glew_h+set}" = set; then
     11899  $as_echo_n "(cached) " >&6
     11900fi
     11901{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5
     11902$as_echo "$ac_cv_header_GL_glew_h" >&6; }
     11903else
     11904  # Is the header compilable?
     11905{ $as_echo "$as_me:$LINENO: checking GL/glew.h usability" >&5
     11906$as_echo_n "checking GL/glew.h usability... " >&6; }
     11907cat >conftest.$ac_ext <<_ACEOF
     11908/* confdefs.h.  */
     11909_ACEOF
     11910cat confdefs.h >>conftest.$ac_ext
     11911cat >>conftest.$ac_ext <<_ACEOF
     11912/* end confdefs.h.  */
     11913$ac_includes_default
     11914#include <GL/glew.h>
     11915_ACEOF
     11916rm -f conftest.$ac_objext
     11917if { (ac_try="$ac_compile"
     11918case "(($ac_try" in
     11919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11920  *) ac_try_echo=$ac_try;;
     11921esac
     11922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11923$as_echo "$ac_try_echo") >&5
     11924  (eval "$ac_compile") 2>conftest.er1
     11925  ac_status=$?
     11926  grep -v '^ *+' conftest.er1 >conftest.err
     11927  rm -f conftest.er1
     11928  cat conftest.err >&5
     11929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11930  (exit $ac_status); } && {
     11931         test -z "$ac_cxx_werror_flag" ||
     11932         test ! -s conftest.err
     11933       } && test -s conftest.$ac_objext; then
     11934  ac_header_compiler=yes
     11935else
     11936  $as_echo "$as_me: failed program was:" >&5
     11937sed 's/^/| /' conftest.$ac_ext >&5
     11938
     11939        ac_header_compiler=no
     11940fi
     11941
     11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     11943{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     11944$as_echo "$ac_header_compiler" >&6; }
     11945
     11946# Is the header present?
     11947{ $as_echo "$as_me:$LINENO: checking GL/glew.h presence" >&5
     11948$as_echo_n "checking GL/glew.h presence... " >&6; }
     11949cat >conftest.$ac_ext <<_ACEOF
     11950/* confdefs.h.  */
     11951_ACEOF
     11952cat confdefs.h >>conftest.$ac_ext
     11953cat >>conftest.$ac_ext <<_ACEOF
     11954/* end confdefs.h.  */
     11955#include <GL/glew.h>
     11956_ACEOF
     11957if { (ac_try="$ac_cpp conftest.$ac_ext"
     11958case "(($ac_try" in
     11959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     11960  *) ac_try_echo=$ac_try;;
     11961esac
     11962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     11963$as_echo "$ac_try_echo") >&5
     11964  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     11965  ac_status=$?
     11966  grep -v '^ *+' conftest.er1 >conftest.err
     11967  rm -f conftest.er1
     11968  cat conftest.err >&5
     11969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     11970  (exit $ac_status); } >/dev/null && {
     11971         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     11972         test ! -s conftest.err
     11973       }; then
     11974  ac_header_preproc=yes
     11975else
     11976  $as_echo "$as_me: failed program was:" >&5
     11977sed 's/^/| /' conftest.$ac_ext >&5
     11978
     11979  ac_header_preproc=no
     11980fi
     11981
     11982rm -f conftest.err conftest.$ac_ext
     11983{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     11984$as_echo "$ac_header_preproc" >&6; }
     11985
     11986# So?  What about this header?
     11987case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     11988  yes:no: )
     11989    { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&5
     11990$as_echo "$as_me: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     11991    { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the compiler's result" >&5
     11992$as_echo "$as_me: WARNING: GL/glew.h: proceeding with the compiler's result" >&2;}
     11993    ac_header_preproc=yes
     11994    ;;
     11995  no:yes:* )
     11996    { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: present but cannot be compiled" >&5
     11997$as_echo "$as_me: WARNING: GL/glew.h: present but cannot be compiled" >&2;}
     11998    { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h:     check for missing prerequisite headers?" >&5
     11999$as_echo "$as_me: WARNING: GL/glew.h:     check for missing prerequisite headers?" >&2;}
     12000    { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: see the Autoconf documentation" >&5
     12001$as_echo "$as_me: WARNING: GL/glew.h: see the Autoconf documentation" >&2;}
     12002    { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h:     section \"Present But Cannot Be Compiled\"" >&5
     12003$as_echo "$as_me: WARNING: GL/glew.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     12004    { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&5
     12005$as_echo "$as_me: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&2;}
     12006    { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&5
     12007$as_echo "$as_me: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&2;}
     12008    ( cat <<\_ASBOX
     12009## ----------------------------------- ##
     12010## Report this to rappture@nanohub.org ##
     12011## ----------------------------------- ##
     12012_ASBOX
     12013     ) | sed "s/^/$as_me: WARNING:     /" >&2
     12014    ;;
     12015esac
     12016{ $as_echo "$as_me:$LINENO: checking for GL/glew.h" >&5
     12017$as_echo_n "checking for GL/glew.h... " >&6; }
     12018if test "${ac_cv_header_GL_glew_h+set}" = set; then
     12019  $as_echo_n "(cached) " >&6
     12020else
     12021  ac_cv_header_GL_glew_h=$ac_header_preproc
     12022fi
     12023{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5
     12024$as_echo "$ac_cv_header_GL_glew_h" >&6; }
     12025
     12026fi
     12027
     12028
     12029
     12030
     12031
     12032
     12033
     12034
     12035for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h
     12036do
     12037as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     12038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12039  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     12040$as_echo_n "checking for $ac_header... " >&6; }
     12041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12042  $as_echo_n "(cached) " >&6
     12043fi
     12044ac_res=`eval 'as_val=${'$as_ac_Header'}
     12045                 $as_echo "$as_val"'`
     12046               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     12047$as_echo "$ac_res" >&6; }
     12048else
     12049  # Is the header compilable?
     12050{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     12051$as_echo_n "checking $ac_header usability... " >&6; }
     12052cat >conftest.$ac_ext <<_ACEOF
     12053/* confdefs.h.  */
     12054_ACEOF
     12055cat confdefs.h >>conftest.$ac_ext
     12056cat >>conftest.$ac_ext <<_ACEOF
     12057/* end confdefs.h.  */
     12058$ac_includes_default
     12059#include <$ac_header>
     12060_ACEOF
     12061rm -f conftest.$ac_objext
     12062if { (ac_try="$ac_compile"
     12063case "(($ac_try" in
     12064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12065  *) ac_try_echo=$ac_try;;
     12066esac
     12067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12068$as_echo "$ac_try_echo") >&5
     12069  (eval "$ac_compile") 2>conftest.er1
     12070  ac_status=$?
     12071  grep -v '^ *+' conftest.er1 >conftest.err
     12072  rm -f conftest.er1
     12073  cat conftest.err >&5
     12074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12075  (exit $ac_status); } && {
     12076         test -z "$ac_cxx_werror_flag" ||
     12077         test ! -s conftest.err
     12078       } && test -s conftest.$ac_objext; then
     12079  ac_header_compiler=yes
     12080else
     12081  $as_echo "$as_me: failed program was:" >&5
     12082sed 's/^/| /' conftest.$ac_ext >&5
     12083
     12084        ac_header_compiler=no
     12085fi
     12086
     12087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     12088{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     12089$as_echo "$ac_header_compiler" >&6; }
     12090
     12091# Is the header present?
     12092{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     12093$as_echo_n "checking $ac_header presence... " >&6; }
     12094cat >conftest.$ac_ext <<_ACEOF
     12095/* confdefs.h.  */
     12096_ACEOF
     12097cat confdefs.h >>conftest.$ac_ext
     12098cat >>conftest.$ac_ext <<_ACEOF
     12099/* end confdefs.h.  */
     12100#include <$ac_header>
     12101_ACEOF
     12102if { (ac_try="$ac_cpp conftest.$ac_ext"
     12103case "(($ac_try" in
     12104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12105  *) ac_try_echo=$ac_try;;
     12106esac
     12107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12108$as_echo "$ac_try_echo") >&5
     12109  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     12110  ac_status=$?
     12111  grep -v '^ *+' conftest.er1 >conftest.err
     12112  rm -f conftest.er1
     12113  cat conftest.err >&5
     12114  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12115  (exit $ac_status); } >/dev/null && {
     12116         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     12117         test ! -s conftest.err
     12118       }; then
     12119  ac_header_preproc=yes
     12120else
     12121  $as_echo "$as_me: failed program was:" >&5
     12122sed 's/^/| /' conftest.$ac_ext >&5
     12123
     12124  ac_header_preproc=no
     12125fi
     12126
     12127rm -f conftest.err conftest.$ac_ext
     12128{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     12129$as_echo "$ac_header_preproc" >&6; }
     12130
     12131# So?  What about this header?
     12132case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     12133  yes:no: )
     12134    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     12135$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     12136    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     12137$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     12138    ac_header_preproc=yes
     12139    ;;
     12140  no:yes:* )
     12141    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     12142$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     12143    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     12144$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     12145    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     12146$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     12147    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     12148$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     12149    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     12150$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     12151    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     12152$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     12153    ( cat <<\_ASBOX
     12154## ----------------------------------- ##
     12155## Report this to rappture@nanohub.org ##
     12156## ----------------------------------- ##
     12157_ASBOX
     12158     ) | sed "s/^/$as_me: WARNING:     /" >&2
     12159    ;;
     12160esac
     12161{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     12162$as_echo_n "checking for $ac_header... " >&6; }
     12163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12164  $as_echo_n "(cached) " >&6
     12165else
     12166  eval "$as_ac_Header=\$ac_header_preproc"
     12167fi
     12168ac_res=`eval 'as_val=${'$as_ac_Header'}
     12169                 $as_echo "$as_val"'`
     12170               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     12171$as_echo "$ac_res" >&6; }
     12172
     12173fi
     12174as_val=`eval 'as_val=${'$as_ac_Header'}
     12175                 $as_echo "$as_val"'`
     12176   if test "x$as_val" = x""yes; then
    834012177  cat >>confdefs.h <<_ACEOF
    834112178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    834712184
    834812185
     12186
     12187
     12188
     12189
     12190for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h
     12191do
     12192as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     12193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12194  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     12195$as_echo_n "checking for $ac_header... " >&6; }
     12196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12197  $as_echo_n "(cached) " >&6
     12198fi
     12199ac_res=`eval 'as_val=${'$as_ac_Header'}
     12200                 $as_echo "$as_val"'`
     12201               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     12202$as_echo "$ac_res" >&6; }
     12203else
     12204  # Is the header compilable?
     12205{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     12206$as_echo_n "checking $ac_header usability... " >&6; }
     12207cat >conftest.$ac_ext <<_ACEOF
     12208/* confdefs.h.  */
     12209_ACEOF
     12210cat confdefs.h >>conftest.$ac_ext
     12211cat >>conftest.$ac_ext <<_ACEOF
     12212/* end confdefs.h.  */
     12213$ac_includes_default
     12214#include <$ac_header>
     12215_ACEOF
     12216rm -f conftest.$ac_objext
     12217if { (ac_try="$ac_compile"
     12218case "(($ac_try" in
     12219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12220  *) ac_try_echo=$ac_try;;
     12221esac
     12222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12223$as_echo "$ac_try_echo") >&5
     12224  (eval "$ac_compile") 2>conftest.er1
     12225  ac_status=$?
     12226  grep -v '^ *+' conftest.er1 >conftest.err
     12227  rm -f conftest.er1
     12228  cat conftest.err >&5
     12229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12230  (exit $ac_status); } && {
     12231         test -z "$ac_cxx_werror_flag" ||
     12232         test ! -s conftest.err
     12233       } && test -s conftest.$ac_objext; then
     12234  ac_header_compiler=yes
     12235else
     12236  $as_echo "$as_me: failed program was:" >&5
     12237sed 's/^/| /' conftest.$ac_ext >&5
     12238
     12239        ac_header_compiler=no
     12240fi
     12241
     12242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     12243{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     12244$as_echo "$ac_header_compiler" >&6; }
     12245
     12246# Is the header present?
     12247{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     12248$as_echo_n "checking $ac_header presence... " >&6; }
     12249cat >conftest.$ac_ext <<_ACEOF
     12250/* confdefs.h.  */
     12251_ACEOF
     12252cat confdefs.h >>conftest.$ac_ext
     12253cat >>conftest.$ac_ext <<_ACEOF
     12254/* end confdefs.h.  */
     12255#include <$ac_header>
     12256_ACEOF
     12257if { (ac_try="$ac_cpp conftest.$ac_ext"
     12258case "(($ac_try" in
     12259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12260  *) ac_try_echo=$ac_try;;
     12261esac
     12262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12263$as_echo "$ac_try_echo") >&5
     12264  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     12265  ac_status=$?
     12266  grep -v '^ *+' conftest.er1 >conftest.err
     12267  rm -f conftest.er1
     12268  cat conftest.err >&5
     12269  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12270  (exit $ac_status); } >/dev/null && {
     12271         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     12272         test ! -s conftest.err
     12273       }; then
     12274  ac_header_preproc=yes
     12275else
     12276  $as_echo "$as_me: failed program was:" >&5
     12277sed 's/^/| /' conftest.$ac_ext >&5
     12278
     12279  ac_header_preproc=no
     12280fi
     12281
     12282rm -f conftest.err conftest.$ac_ext
     12283{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     12284$as_echo "$ac_header_preproc" >&6; }
     12285
     12286# So?  What about this header?
     12287case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     12288  yes:no: )
     12289    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     12290$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     12291    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     12292$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     12293    ac_header_preproc=yes
     12294    ;;
     12295  no:yes:* )
     12296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     12297$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     12298    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     12299$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     12300    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     12301$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     12302    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     12303$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     12304    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     12305$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     12306    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     12307$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     12308    ( cat <<\_ASBOX
     12309## ----------------------------------- ##
     12310## Report this to rappture@nanohub.org ##
     12311## ----------------------------------- ##
     12312_ASBOX
     12313     ) | sed "s/^/$as_me: WARNING:     /" >&2
     12314    ;;
     12315esac
     12316{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     12317$as_echo_n "checking for $ac_header... " >&6; }
     12318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12319  $as_echo_n "(cached) " >&6
     12320else
     12321  eval "$as_ac_Header=\$ac_header_preproc"
     12322fi
     12323ac_res=`eval 'as_val=${'$as_ac_Header'}
     12324                 $as_echo "$as_val"'`
     12325               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     12326$as_echo "$ac_res" >&6; }
     12327
     12328fi
     12329as_val=`eval 'as_val=${'$as_ac_Header'}
     12330                 $as_echo "$as_val"'`
     12331   if test "x$as_val" = x""yes; then
     12332  cat >>confdefs.h <<_ACEOF
     12333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     12334_ACEOF
     12335
     12336fi
     12337
     12338done
     12339
     12340
     12341
    834912342for ac_func in accept4
    8350 do :
    8351   ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
    8352 if test "x$ac_cv_func_accept4" = xyes; then :
     12343do
     12344as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     12345{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     12346$as_echo_n "checking for $ac_func... " >&6; }
     12347if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     12348  $as_echo_n "(cached) " >&6
     12349else
     12350  cat >conftest.$ac_ext <<_ACEOF
     12351/* confdefs.h.  */
     12352_ACEOF
     12353cat confdefs.h >>conftest.$ac_ext
     12354cat >>conftest.$ac_ext <<_ACEOF
     12355/* end confdefs.h.  */
     12356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     12357   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     12358#define $ac_func innocuous_$ac_func
     12359
     12360/* System header to define __stub macros and hopefully few prototypes,
     12361    which can conflict with char $ac_func (); below.
     12362    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     12363    <limits.h> exists even on freestanding compilers.  */
     12364
     12365#ifdef __STDC__
     12366# include <limits.h>
     12367#else
     12368# include <assert.h>
     12369#endif
     12370
     12371#undef $ac_func
     12372
     12373/* Override any GCC internal prototype to avoid an error.
     12374   Use char because int might match the return type of a GCC
     12375   builtin and then its argument prototype would still apply.  */
     12376#ifdef __cplusplus
     12377extern "C"
     12378#endif
     12379char $ac_func ();
     12380/* The GNU C library defines this for functions which it implements
     12381    to always fail with ENOSYS.  Some functions are actually named
     12382    something starting with __ and the normal name is an alias.  */
     12383#if defined __stub_$ac_func || defined __stub___$ac_func
     12384choke me
     12385#endif
     12386
     12387int
     12388main ()
     12389{
     12390return $ac_func ();
     12391  ;
     12392  return 0;
     12393}
     12394_ACEOF
     12395rm -f conftest.$ac_objext conftest$ac_exeext
     12396if { (ac_try="$ac_link"
     12397case "(($ac_try" in
     12398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12399  *) ac_try_echo=$ac_try;;
     12400esac
     12401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12402$as_echo "$ac_try_echo") >&5
     12403  (eval "$ac_link") 2>conftest.er1
     12404  ac_status=$?
     12405  grep -v '^ *+' conftest.er1 >conftest.err
     12406  rm -f conftest.er1
     12407  cat conftest.err >&5
     12408  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12409  (exit $ac_status); } && {
     12410         test -z "$ac_cxx_werror_flag" ||
     12411         test ! -s conftest.err
     12412       } && test -s conftest$ac_exeext && {
     12413         test "$cross_compiling" = yes ||
     12414         $as_test_x conftest$ac_exeext
     12415       }; then
     12416  eval "$as_ac_var=yes"
     12417else
     12418  $as_echo "$as_me: failed program was:" >&5
     12419sed 's/^/| /' conftest.$ac_ext >&5
     12420
     12421        eval "$as_ac_var=no"
     12422fi
     12423
     12424rm -rf conftest.dSYM
     12425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     12426      conftest$ac_exeext conftest.$ac_ext
     12427fi
     12428ac_res=`eval 'as_val=${'$as_ac_var'}
     12429                 $as_echo "$as_val"'`
     12430               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     12431$as_echo "$ac_res" >&6; }
     12432as_val=`eval 'as_val=${'$as_ac_var'}
     12433                 $as_echo "$as_val"'`
     12434   if test "x$as_val" = x""yes; then
    835312435  cat >>confdefs.h <<_ACEOF
    8354 #define HAVE_ACCEPT4 1
     12436#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    835512437_ACEOF
    835612438
     
    835912441
    836012442
    8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenDX headers" >&5
     12443{ $as_echo "$as_me:$LINENO: checking for OpenDX headers" >&5
    836212444$as_echo_n "checking for OpenDX headers... " >&6; }
    836312445DX_INC_DIR=""
     
    837312455done
    837412456if test "x${DX_INC_DIR}" = "x" ; then
    8375   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find OpenDX include files" >&5
     12457  { $as_echo "$as_me:$LINENO: WARNING: cannot find OpenDX include files" >&5
    837612458$as_echo "$as_me: WARNING: cannot find OpenDX include files" >&2;}
    837712459  DX_INC_SPEC=""
     
    838212464fi
    838312465
    8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DX_INC_DIR}" >&5
     12466{ $as_echo "$as_me:$LINENO: result: ${DX_INC_DIR}" >&5
    838512467$as_echo "${DX_INC_DIR}" >&6; }
    838612468save_CPPFLAGS=${CPPFLAGS}
    838712469CPPFLAGS="$DX_INC_SPEC $CPPFLAGS"
     12470
    838812471for ac_header in dx/dx.h
    8389 do :
    8390   ac_fn_cxx_check_header_mongrel "$LINENO" "dx/dx.h" "ac_cv_header_dx_dx_h" "$ac_includes_default"
    8391 if test "x$ac_cv_header_dx_dx_h" = xyes; then :
     12472do
     12473as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     12474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12475  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     12476$as_echo_n "checking for $ac_header... " >&6; }
     12477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12478  $as_echo_n "(cached) " >&6
     12479fi
     12480ac_res=`eval 'as_val=${'$as_ac_Header'}
     12481                 $as_echo "$as_val"'`
     12482               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     12483$as_echo "$ac_res" >&6; }
     12484else
     12485  # Is the header compilable?
     12486{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     12487$as_echo_n "checking $ac_header usability... " >&6; }
     12488cat >conftest.$ac_ext <<_ACEOF
     12489/* confdefs.h.  */
     12490_ACEOF
     12491cat confdefs.h >>conftest.$ac_ext
     12492cat >>conftest.$ac_ext <<_ACEOF
     12493/* end confdefs.h.  */
     12494$ac_includes_default
     12495#include <$ac_header>
     12496_ACEOF
     12497rm -f conftest.$ac_objext
     12498if { (ac_try="$ac_compile"
     12499case "(($ac_try" in
     12500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12501  *) ac_try_echo=$ac_try;;
     12502esac
     12503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12504$as_echo "$ac_try_echo") >&5
     12505  (eval "$ac_compile") 2>conftest.er1
     12506  ac_status=$?
     12507  grep -v '^ *+' conftest.er1 >conftest.err
     12508  rm -f conftest.er1
     12509  cat conftest.err >&5
     12510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12511  (exit $ac_status); } && {
     12512         test -z "$ac_cxx_werror_flag" ||
     12513         test ! -s conftest.err
     12514       } && test -s conftest.$ac_objext; then
     12515  ac_header_compiler=yes
     12516else
     12517  $as_echo "$as_me: failed program was:" >&5
     12518sed 's/^/| /' conftest.$ac_ext >&5
     12519
     12520        ac_header_compiler=no
     12521fi
     12522
     12523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     12524{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     12525$as_echo "$ac_header_compiler" >&6; }
     12526
     12527# Is the header present?
     12528{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     12529$as_echo_n "checking $ac_header presence... " >&6; }
     12530cat >conftest.$ac_ext <<_ACEOF
     12531/* confdefs.h.  */
     12532_ACEOF
     12533cat confdefs.h >>conftest.$ac_ext
     12534cat >>conftest.$ac_ext <<_ACEOF
     12535/* end confdefs.h.  */
     12536#include <$ac_header>
     12537_ACEOF
     12538if { (ac_try="$ac_cpp conftest.$ac_ext"
     12539case "(($ac_try" in
     12540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12541  *) ac_try_echo=$ac_try;;
     12542esac
     12543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12544$as_echo "$ac_try_echo") >&5
     12545  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     12546  ac_status=$?
     12547  grep -v '^ *+' conftest.er1 >conftest.err
     12548  rm -f conftest.er1
     12549  cat conftest.err >&5
     12550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12551  (exit $ac_status); } >/dev/null && {
     12552         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     12553         test ! -s conftest.err
     12554       }; then
     12555  ac_header_preproc=yes
     12556else
     12557  $as_echo "$as_me: failed program was:" >&5
     12558sed 's/^/| /' conftest.$ac_ext >&5
     12559
     12560  ac_header_preproc=no
     12561fi
     12562
     12563rm -f conftest.err conftest.$ac_ext
     12564{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     12565$as_echo "$ac_header_preproc" >&6; }
     12566
     12567# So?  What about this header?
     12568case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     12569  yes:no: )
     12570    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     12571$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     12572    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     12573$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     12574    ac_header_preproc=yes
     12575    ;;
     12576  no:yes:* )
     12577    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     12578$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     12579    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     12580$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     12581    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     12582$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     12583    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     12584$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     12585    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     12586$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     12587    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     12588$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     12589    ( cat <<\_ASBOX
     12590## ----------------------------------- ##
     12591## Report this to rappture@nanohub.org ##
     12592## ----------------------------------- ##
     12593_ASBOX
     12594     ) | sed "s/^/$as_me: WARNING:     /" >&2
     12595    ;;
     12596esac
     12597{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     12598$as_echo_n "checking for $ac_header... " >&6; }
     12599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12600  $as_echo_n "(cached) " >&6
     12601else
     12602  eval "$as_ac_Header=\$ac_header_preproc"
     12603fi
     12604ac_res=`eval 'as_val=${'$as_ac_Header'}
     12605                 $as_echo "$as_val"'`
     12606               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     12607$as_echo "$ac_res" >&6; }
     12608
     12609fi
     12610as_val=`eval 'as_val=${'$as_ac_Header'}
     12611                 $as_echo "$as_val"'`
     12612   if test "x$as_val" = x""yes; then
    839212613  cat >>confdefs.h <<_ACEOF
    8393 #define HAVE_DX_DX_H 1
     12614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    839412615_ACEOF
    839512616
     
    841212633  LDFLAGS="-L$dir $LDFLAGS"
    841312634  unset ac_cv_lib_DXcallm_DXGetComponentValue
    8414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DXGetComponentValue in -lDXcallm" >&5
     12635  { $as_echo "$as_me:$LINENO: checking for DXGetComponentValue in -lDXcallm" >&5
    841512636$as_echo_n "checking for DXGetComponentValue in -lDXcallm... " >&6; }
    8416 if ${ac_cv_lib_DXcallm_DXGetComponentValue+:} false; then :
     12637if test "${ac_cv_lib_DXcallm_DXGetComponentValue+set}" = set; then
    841712638  $as_echo_n "(cached) " >&6
    841812639else
    841912640  ac_check_lib_save_LIBS=$LIBS
    842012641LIBS="-lDXcallm -lX11 $LIBS"
    8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12642cat >conftest.$ac_ext <<_ACEOF
     12643/* confdefs.h.  */
     12644_ACEOF
     12645cat confdefs.h >>conftest.$ac_ext
     12646cat >>conftest.$ac_ext <<_ACEOF
    842212647/* end confdefs.h.  */
    842312648
     
    843712662}
    843812663_ACEOF
    8439 if ac_fn_cxx_try_link "$LINENO"; then :
     12664rm -f conftest.$ac_objext conftest$ac_exeext
     12665if { (ac_try="$ac_link"
     12666case "(($ac_try" in
     12667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12668  *) ac_try_echo=$ac_try;;
     12669esac
     12670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12671$as_echo "$ac_try_echo") >&5
     12672  (eval "$ac_link") 2>conftest.er1
     12673  ac_status=$?
     12674  grep -v '^ *+' conftest.er1 >conftest.err
     12675  rm -f conftest.er1
     12676  cat conftest.err >&5
     12677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12678  (exit $ac_status); } && {
     12679         test -z "$ac_cxx_werror_flag" ||
     12680         test ! -s conftest.err
     12681       } && test -s conftest$ac_exeext && {
     12682         test "$cross_compiling" = yes ||
     12683         $as_test_x conftest$ac_exeext
     12684       }; then
    844012685  ac_cv_lib_DXcallm_DXGetComponentValue=yes
    844112686else
    8442   ac_cv_lib_DXcallm_DXGetComponentValue=no
    8443 fi
    8444 rm -f core conftest.err conftest.$ac_objext \
    8445     conftest$ac_exeext conftest.$ac_ext
     12687  $as_echo "$as_me: failed program was:" >&5
     12688sed 's/^/| /' conftest.$ac_ext >&5
     12689
     12690        ac_cv_lib_DXcallm_DXGetComponentValue=no
     12691fi
     12692
     12693rm -rf conftest.dSYM
     12694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     12695      conftest$ac_exeext conftest.$ac_ext
    844612696LIBS=$ac_check_lib_save_LIBS
    844712697fi
    8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_DXcallm_DXGetComponentValue" >&5
     12698{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_DXcallm_DXGetComponentValue" >&5
    844912699$as_echo "$ac_cv_lib_DXcallm_DXGetComponentValue" >&6; }
    8450 if test "x$ac_cv_lib_DXcallm_DXGetComponentValue" = xyes; then :
     12700if test "x$ac_cv_lib_DXcallm_DXGetComponentValue" = x""yes; then
    845112701  found=yes
    845212702else
     
    846112711done
    846212712if test "x${DX_LIB_DIR}" = "x" ; then
    8463   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find OpenDX libraries" >&5
     12713  { $as_echo "$as_me:$LINENO: WARNING: cannot find OpenDX libraries" >&5
    846412714$as_echo "$as_me: WARNING: cannot find OpenDX libraries" >&2;}
    846512715fi
    846612716
    8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libDXcallm library" >&5
     12717{ $as_echo "$as_me:$LINENO: checking for libDXcallm library" >&5
    846812718$as_echo_n "checking for libDXcallm library... " >&6; }
    846912719if test "x${DX_LIB_DIR}" = "x" -o "${DX_LIB_DIR}" = "/usr/lib" -o "${DX_LIB_DIR}" = "/usr/lib64"; then
     
    847212722  DX_LIB_SPEC="-L${DX_LIB_DIR} -lDXcallm"
    847312723fi
    8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LIB_SPEC" >&5
     12724{ $as_echo "$as_me:$LINENO: result: $DX_LIB_SPEC" >&5
    847512725$as_echo "$DX_LIB_SPEC" >&6; }
    847612726
     
    848212732fi
    848312733
     12734
     12735
     12736
     12737
     12738
     12739
    848412740for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h
    8485 do :
    8486   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    8487 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
     12741do
     12742as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     12743{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     12744$as_echo_n "checking for $ac_header... " >&6; }
     12745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12746  $as_echo_n "(cached) " >&6
     12747else
     12748  cat >conftest.$ac_ext <<_ACEOF
     12749/* confdefs.h.  */
     12750_ACEOF
     12751cat confdefs.h >>conftest.$ac_ext
     12752cat >>conftest.$ac_ext <<_ACEOF
     12753/* end confdefs.h.  */
     12754
    848812755#define __STDC_CONSTANT_MACROS 1
    848912756
    8490 "
    8491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     12757
     12758#include <$ac_header>
     12759_ACEOF
     12760rm -f conftest.$ac_objext
     12761if { (ac_try="$ac_compile"
     12762case "(($ac_try" in
     12763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12764  *) ac_try_echo=$ac_try;;
     12765esac
     12766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12767$as_echo "$ac_try_echo") >&5
     12768  (eval "$ac_compile") 2>conftest.er1
     12769  ac_status=$?
     12770  grep -v '^ *+' conftest.er1 >conftest.err
     12771  rm -f conftest.er1
     12772  cat conftest.err >&5
     12773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12774  (exit $ac_status); } && {
     12775         test -z "$ac_cxx_werror_flag" ||
     12776         test ! -s conftest.err
     12777       } && test -s conftest.$ac_objext; then
     12778  eval "$as_ac_Header=yes"
     12779else
     12780  $as_echo "$as_me: failed program was:" >&5
     12781sed 's/^/| /' conftest.$ac_ext >&5
     12782
     12783        eval "$as_ac_Header=no"
     12784fi
     12785
     12786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     12787fi
     12788ac_res=`eval 'as_val=${'$as_ac_Header'}
     12789                 $as_echo "$as_val"'`
     12790               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     12791$as_echo "$ac_res" >&6; }
     12792as_val=`eval 'as_val=${'$as_ac_Header'}
     12793                 $as_echo "$as_val"'`
     12794   if test "x$as_val" = x""yes; then
    849212795  cat >>confdefs.h <<_ACEOF
    849312796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    850012803CPPFLAGS=$save_CPPFLAGS
    850112804
    8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5
     12805
     12806{ $as_echo "$as_me:$LINENO: checking for main in -lavcodec" >&5
    850312807$as_echo_n "checking for main in -lavcodec... " >&6; }
    8504 if ${ac_cv_lib_avcodec_main+:} false; then :
     12808if test "${ac_cv_lib_avcodec_main+set}" = set; then
    850512809  $as_echo_n "(cached) " >&6
    850612810else
    850712811  ac_check_lib_save_LIBS=$LIBS
    850812812LIBS="-lavcodec  $LIBS"
    8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12813cat >conftest.$ac_ext <<_ACEOF
     12814/* confdefs.h.  */
     12815_ACEOF
     12816cat confdefs.h >>conftest.$ac_ext
     12817cat >>conftest.$ac_ext <<_ACEOF
    851012818/* end confdefs.h.  */
    851112819
     
    851912827}
    852012828_ACEOF
    8521 if ac_fn_cxx_try_link "$LINENO"; then :
     12829rm -f conftest.$ac_objext conftest$ac_exeext
     12830if { (ac_try="$ac_link"
     12831case "(($ac_try" in
     12832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12833  *) ac_try_echo=$ac_try;;
     12834esac
     12835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12836$as_echo "$ac_try_echo") >&5
     12837  (eval "$ac_link") 2>conftest.er1
     12838  ac_status=$?
     12839  grep -v '^ *+' conftest.er1 >conftest.err
     12840  rm -f conftest.er1
     12841  cat conftest.err >&5
     12842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12843  (exit $ac_status); } && {
     12844         test -z "$ac_cxx_werror_flag" ||
     12845         test ! -s conftest.err
     12846       } && test -s conftest$ac_exeext && {
     12847         test "$cross_compiling" = yes ||
     12848         $as_test_x conftest$ac_exeext
     12849       }; then
    852212850  ac_cv_lib_avcodec_main=yes
    852312851else
    8524   ac_cv_lib_avcodec_main=no
    8525 fi
    8526 rm -f core conftest.err conftest.$ac_objext \
    8527     conftest$ac_exeext conftest.$ac_ext
     12852  $as_echo "$as_me: failed program was:" >&5
     12853sed 's/^/| /' conftest.$ac_ext >&5
     12854
     12855        ac_cv_lib_avcodec_main=no
     12856fi
     12857
     12858rm -rf conftest.dSYM
     12859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     12860      conftest$ac_exeext conftest.$ac_ext
    852812861LIBS=$ac_check_lib_save_LIBS
    852912862fi
    8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5
     12863{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_main" >&5
    853112864$as_echo "$ac_cv_lib_avcodec_main" >&6; }
    8532 if test "x$ac_cv_lib_avcodec_main" = xyes; then :
     12865if test "x$ac_cv_lib_avcodec_main" = x""yes; then
    853312866  cat >>confdefs.h <<_ACEOF
    853412867#define HAVE_LIBAVCODEC 1
     
    853812871
    853912872else
    8540   as_fn_error $? "requires libavcodec" "$LINENO" 5
    8541 fi
    8542 
    8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5
     12873  { { $as_echo "$as_me:$LINENO: error: requires libavcodec" >&5
     12874$as_echo "$as_me: error: requires libavcodec" >&2;}
     12875   { (exit 1); exit 1; }; }
     12876fi
     12877
     12878
     12879{ $as_echo "$as_me:$LINENO: checking for main in -lavutil" >&5
    854412880$as_echo_n "checking for main in -lavutil... " >&6; }
    8545 if ${ac_cv_lib_avutil_main+:} false; then :
     12881if test "${ac_cv_lib_avutil_main+set}" = set; then
    854612882  $as_echo_n "(cached) " >&6
    854712883else
    854812884  ac_check_lib_save_LIBS=$LIBS
    854912885LIBS="-lavutil  $LIBS"
    8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12886cat >conftest.$ac_ext <<_ACEOF
     12887/* confdefs.h.  */
     12888_ACEOF
     12889cat confdefs.h >>conftest.$ac_ext
     12890cat >>conftest.$ac_ext <<_ACEOF
    855112891/* end confdefs.h.  */
    855212892
     
    856012900}
    856112901_ACEOF
    8562 if ac_fn_cxx_try_link "$LINENO"; then :
     12902rm -f conftest.$ac_objext conftest$ac_exeext
     12903if { (ac_try="$ac_link"
     12904case "(($ac_try" in
     12905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12906  *) ac_try_echo=$ac_try;;
     12907esac
     12908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12909$as_echo "$ac_try_echo") >&5
     12910  (eval "$ac_link") 2>conftest.er1
     12911  ac_status=$?
     12912  grep -v '^ *+' conftest.er1 >conftest.err
     12913  rm -f conftest.er1
     12914  cat conftest.err >&5
     12915  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12916  (exit $ac_status); } && {
     12917         test -z "$ac_cxx_werror_flag" ||
     12918         test ! -s conftest.err
     12919       } && test -s conftest$ac_exeext && {
     12920         test "$cross_compiling" = yes ||
     12921         $as_test_x conftest$ac_exeext
     12922       }; then
    856312923  ac_cv_lib_avutil_main=yes
    856412924else
    8565   ac_cv_lib_avutil_main=no
    8566 fi
    8567 rm -f core conftest.err conftest.$ac_objext \
    8568     conftest$ac_exeext conftest.$ac_ext
     12925  $as_echo "$as_me: failed program was:" >&5
     12926sed 's/^/| /' conftest.$ac_ext >&5
     12927
     12928        ac_cv_lib_avutil_main=no
     12929fi
     12930
     12931rm -rf conftest.dSYM
     12932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     12933      conftest$ac_exeext conftest.$ac_ext
    856912934LIBS=$ac_check_lib_save_LIBS
    857012935fi
    8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5
     12936{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_main" >&5
    857212937$as_echo "$ac_cv_lib_avutil_main" >&6; }
    8573 if test "x$ac_cv_lib_avutil_main" = xyes; then :
     12938if test "x$ac_cv_lib_avutil_main" = x""yes; then
    857412939  cat >>confdefs.h <<_ACEOF
    857512940#define HAVE_LIBAVUTIL 1
     
    857912944
    858012945else
    8581   as_fn_error $? "requires libavutil" "$LINENO" 5
    8582 fi
    8583 
    8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
     12946  { { $as_echo "$as_me:$LINENO: error: requires libavutil" >&5
     12947$as_echo "$as_me: error: requires libavutil" >&2;}
     12948   { (exit 1); exit 1; }; }
     12949fi
     12950
     12951
     12952{ $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5
    858512953$as_echo_n "checking for main in -lavformat... " >&6; }
    8586 if ${ac_cv_lib_avformat_main+:} false; then :
     12954if test "${ac_cv_lib_avformat_main+set}" = set; then
    858712955  $as_echo_n "(cached) " >&6
    858812956else
    858912957  ac_check_lib_save_LIBS=$LIBS
    859012958LIBS="-lavformat  $LIBS"
    8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12959cat >conftest.$ac_ext <<_ACEOF
     12960/* confdefs.h.  */
     12961_ACEOF
     12962cat confdefs.h >>conftest.$ac_ext
     12963cat >>conftest.$ac_ext <<_ACEOF
    859212964/* end confdefs.h.  */
    859312965
     
    860112973}
    860212974_ACEOF
    8603 if ac_fn_cxx_try_link "$LINENO"; then :
     12975rm -f conftest.$ac_objext conftest$ac_exeext
     12976if { (ac_try="$ac_link"
     12977case "(($ac_try" in
     12978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12979  *) ac_try_echo=$ac_try;;
     12980esac
     12981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12982$as_echo "$ac_try_echo") >&5
     12983  (eval "$ac_link") 2>conftest.er1
     12984  ac_status=$?
     12985  grep -v '^ *+' conftest.er1 >conftest.err
     12986  rm -f conftest.er1
     12987  cat conftest.err >&5
     12988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12989  (exit $ac_status); } && {
     12990         test -z "$ac_cxx_werror_flag" ||
     12991         test ! -s conftest.err
     12992       } && test -s conftest$ac_exeext && {
     12993         test "$cross_compiling" = yes ||
     12994         $as_test_x conftest$ac_exeext
     12995       }; then
    860412996  ac_cv_lib_avformat_main=yes
    860512997else
    8606   ac_cv_lib_avformat_main=no
    8607 fi
    8608 rm -f core conftest.err conftest.$ac_objext \
    8609     conftest$ac_exeext conftest.$ac_ext
     12998  $as_echo "$as_me: failed program was:" >&5
     12999sed 's/^/| /' conftest.$ac_ext >&5
     13000
     13001        ac_cv_lib_avformat_main=no
     13002fi
     13003
     13004rm -rf conftest.dSYM
     13005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13006      conftest$ac_exeext conftest.$ac_ext
    861013007LIBS=$ac_check_lib_save_LIBS
    861113008fi
    8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
     13009{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&5
    861313010$as_echo "$ac_cv_lib_avformat_main" >&6; }
    8614 if test "x$ac_cv_lib_avformat_main" = xyes; then :
     13011if test "x$ac_cv_lib_avformat_main" = x""yes; then
    861513012  cat >>confdefs.h <<_ACEOF
    861613013#define HAVE_LIBAVFORMAT 1
     
    862013017
    862113018else
    8622   as_fn_error $? "requires libavformat" "$LINENO" 5
    8623 fi
    8624 
    8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
     13019  { { $as_echo "$as_me:$LINENO: error: requires libavformat" >&5
     13020$as_echo "$as_me: error: requires libavformat" >&2;}
     13021   { (exit 1); exit 1; }; }
     13022fi
     13023
     13024
     13025{ $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5
    862613026$as_echo_n "checking for main in -lswscale... " >&6; }
    8627 if ${ac_cv_lib_swscale_main+:} false; then :
     13027if test "${ac_cv_lib_swscale_main+set}" = set; then
    862813028  $as_echo_n "(cached) " >&6
    862913029else
    863013030  ac_check_lib_save_LIBS=$LIBS
    863113031LIBS="-lswscale  $LIBS"
    8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     13032cat >conftest.$ac_ext <<_ACEOF
     13033/* confdefs.h.  */
     13034_ACEOF
     13035cat confdefs.h >>conftest.$ac_ext
     13036cat >>conftest.$ac_ext <<_ACEOF
    863313037/* end confdefs.h.  */
    863413038
     
    864213046}
    864313047_ACEOF
    8644 if ac_fn_cxx_try_link "$LINENO"; then :
     13048rm -f conftest.$ac_objext conftest$ac_exeext
     13049if { (ac_try="$ac_link"
     13050case "(($ac_try" in
     13051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13052  *) ac_try_echo=$ac_try;;
     13053esac
     13054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13055$as_echo "$ac_try_echo") >&5
     13056  (eval "$ac_link") 2>conftest.er1
     13057  ac_status=$?
     13058  grep -v '^ *+' conftest.er1 >conftest.err
     13059  rm -f conftest.er1
     13060  cat conftest.err >&5
     13061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13062  (exit $ac_status); } && {
     13063         test -z "$ac_cxx_werror_flag" ||
     13064         test ! -s conftest.err
     13065       } && test -s conftest$ac_exeext && {
     13066         test "$cross_compiling" = yes ||
     13067         $as_test_x conftest$ac_exeext
     13068       }; then
    864513069  ac_cv_lib_swscale_main=yes
    864613070else
    8647   ac_cv_lib_swscale_main=no
    8648 fi
    8649 rm -f core conftest.err conftest.$ac_objext \
    8650     conftest$ac_exeext conftest.$ac_ext
     13071  $as_echo "$as_me: failed program was:" >&5
     13072sed 's/^/| /' conftest.$ac_ext >&5
     13073
     13074        ac_cv_lib_swscale_main=no
     13075fi
     13076
     13077rm -rf conftest.dSYM
     13078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13079      conftest$ac_exeext conftest.$ac_ext
    865113080LIBS=$ac_check_lib_save_LIBS
    865213081fi
    8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
     13082{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5
    865413083$as_echo "$ac_cv_lib_swscale_main" >&6; }
    8655 if test "x$ac_cv_lib_swscale_main" = xyes; then :
     13084if test "x$ac_cv_lib_swscale_main" = x""yes; then
    865613085  cat >>confdefs.h <<_ACEOF
    865713086#define HAVE_LIBSWSCALE 1
     
    866213091fi
    866313092
     13093
    866413094for ac_func in avcodec_register_all
    8665 do :
    8666   ac_fn_cxx_check_func "$LINENO" "avcodec_register_all" "ac_cv_func_avcodec_register_all"
    8667 if test "x$ac_cv_func_avcodec_register_all" = xyes; then :
     13095do
     13096as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13097{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13098$as_echo_n "checking for $ac_func... " >&6; }
     13099if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13100  $as_echo_n "(cached) " >&6
     13101else
     13102  cat >conftest.$ac_ext <<_ACEOF
     13103/* confdefs.h.  */
     13104_ACEOF
     13105cat confdefs.h >>conftest.$ac_ext
     13106cat >>conftest.$ac_ext <<_ACEOF
     13107/* end confdefs.h.  */
     13108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13109   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13110#define $ac_func innocuous_$ac_func
     13111
     13112/* System header to define __stub macros and hopefully few prototypes,
     13113    which can conflict with char $ac_func (); below.
     13114    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13115    <limits.h> exists even on freestanding compilers.  */
     13116
     13117#ifdef __STDC__
     13118# include <limits.h>
     13119#else
     13120# include <assert.h>
     13121#endif
     13122
     13123#undef $ac_func
     13124
     13125/* Override any GCC internal prototype to avoid an error.
     13126   Use char because int might match the return type of a GCC
     13127   builtin and then its argument prototype would still apply.  */
     13128#ifdef __cplusplus
     13129extern "C"
     13130#endif
     13131char $ac_func ();
     13132/* The GNU C library defines this for functions which it implements
     13133    to always fail with ENOSYS.  Some functions are actually named
     13134    something starting with __ and the normal name is an alias.  */
     13135#if defined __stub_$ac_func || defined __stub___$ac_func
     13136choke me
     13137#endif
     13138
     13139int
     13140main ()
     13141{
     13142return $ac_func ();
     13143  ;
     13144  return 0;
     13145}
     13146_ACEOF
     13147rm -f conftest.$ac_objext conftest$ac_exeext
     13148if { (ac_try="$ac_link"
     13149case "(($ac_try" in
     13150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13151  *) ac_try_echo=$ac_try;;
     13152esac
     13153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13154$as_echo "$ac_try_echo") >&5
     13155  (eval "$ac_link") 2>conftest.er1
     13156  ac_status=$?
     13157  grep -v '^ *+' conftest.er1 >conftest.err
     13158  rm -f conftest.er1
     13159  cat conftest.err >&5
     13160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13161  (exit $ac_status); } && {
     13162         test -z "$ac_cxx_werror_flag" ||
     13163         test ! -s conftest.err
     13164       } && test -s conftest$ac_exeext && {
     13165         test "$cross_compiling" = yes ||
     13166         $as_test_x conftest$ac_exeext
     13167       }; then
     13168  eval "$as_ac_var=yes"
     13169else
     13170  $as_echo "$as_me: failed program was:" >&5
     13171sed 's/^/| /' conftest.$ac_ext >&5
     13172
     13173        eval "$as_ac_var=no"
     13174fi
     13175
     13176rm -rf conftest.dSYM
     13177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13178      conftest$ac_exeext conftest.$ac_ext
     13179fi
     13180ac_res=`eval 'as_val=${'$as_ac_var'}
     13181                 $as_echo "$as_val"'`
     13182               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13183$as_echo "$ac_res" >&6; }
     13184as_val=`eval 'as_val=${'$as_ac_var'}
     13185                 $as_echo "$as_val"'`
     13186   if test "x$as_val" = x""yes; then
    866813187  cat >>confdefs.h <<_ACEOF
    8669 #define HAVE_AVCODEC_REGISTER_ALL 1
     13188#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    867013189_ACEOF
    867113190
     
    867313192done
    867413193
     13194
    867513195for ac_func in avcodec_init
    8676 do :
    8677   ac_fn_cxx_check_func "$LINENO" "avcodec_init" "ac_cv_func_avcodec_init"
    8678 if test "x$ac_cv_func_avcodec_init" = xyes; then :
     13196do
     13197as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13198{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13199$as_echo_n "checking for $ac_func... " >&6; }
     13200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13201  $as_echo_n "(cached) " >&6
     13202else
     13203  cat >conftest.$ac_ext <<_ACEOF
     13204/* confdefs.h.  */
     13205_ACEOF
     13206cat confdefs.h >>conftest.$ac_ext
     13207cat >>conftest.$ac_ext <<_ACEOF
     13208/* end confdefs.h.  */
     13209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13210   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13211#define $ac_func innocuous_$ac_func
     13212
     13213/* System header to define __stub macros and hopefully few prototypes,
     13214    which can conflict with char $ac_func (); below.
     13215    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13216    <limits.h> exists even on freestanding compilers.  */
     13217
     13218#ifdef __STDC__
     13219# include <limits.h>
     13220#else
     13221# include <assert.h>
     13222#endif
     13223
     13224#undef $ac_func
     13225
     13226/* Override any GCC internal prototype to avoid an error.
     13227   Use char because int might match the return type of a GCC
     13228   builtin and then its argument prototype would still apply.  */
     13229#ifdef __cplusplus
     13230extern "C"
     13231#endif
     13232char $ac_func ();
     13233/* The GNU C library defines this for functions which it implements
     13234    to always fail with ENOSYS.  Some functions are actually named
     13235    something starting with __ and the normal name is an alias.  */
     13236#if defined __stub_$ac_func || defined __stub___$ac_func
     13237choke me
     13238#endif
     13239
     13240int
     13241main ()
     13242{
     13243return $ac_func ();
     13244  ;
     13245  return 0;
     13246}
     13247_ACEOF
     13248rm -f conftest.$ac_objext conftest$ac_exeext
     13249if { (ac_try="$ac_link"
     13250case "(($ac_try" in
     13251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13252  *) ac_try_echo=$ac_try;;
     13253esac
     13254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13255$as_echo "$ac_try_echo") >&5
     13256  (eval "$ac_link") 2>conftest.er1
     13257  ac_status=$?
     13258  grep -v '^ *+' conftest.er1 >conftest.err
     13259  rm -f conftest.er1
     13260  cat conftest.err >&5
     13261  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13262  (exit $ac_status); } && {
     13263         test -z "$ac_cxx_werror_flag" ||
     13264         test ! -s conftest.err
     13265       } && test -s conftest$ac_exeext && {
     13266         test "$cross_compiling" = yes ||
     13267         $as_test_x conftest$ac_exeext
     13268       }; then
     13269  eval "$as_ac_var=yes"
     13270else
     13271  $as_echo "$as_me: failed program was:" >&5
     13272sed 's/^/| /' conftest.$ac_ext >&5
     13273
     13274        eval "$as_ac_var=no"
     13275fi
     13276
     13277rm -rf conftest.dSYM
     13278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13279      conftest$ac_exeext conftest.$ac_ext
     13280fi
     13281ac_res=`eval 'as_val=${'$as_ac_var'}
     13282                 $as_echo "$as_val"'`
     13283               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13284$as_echo "$ac_res" >&6; }
     13285as_val=`eval 'as_val=${'$as_ac_var'}
     13286                 $as_echo "$as_val"'`
     13287   if test "x$as_val" = x""yes; then
    867913288  cat >>confdefs.h <<_ACEOF
    8680 #define HAVE_AVCODEC_INIT 1
     13289#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    868113290_ACEOF
    868213291
     
    868413293done
    868513294
     13295
    868613296for ac_func in avformat_new_stream
    8687 do :
    8688   ac_fn_cxx_check_func "$LINENO" "avformat_new_stream" "ac_cv_func_avformat_new_stream"
    8689 if test "x$ac_cv_func_avformat_new_stream" = xyes; then :
     13297do
     13298as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13299{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13300$as_echo_n "checking for $ac_func... " >&6; }
     13301if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13302  $as_echo_n "(cached) " >&6
     13303else
     13304  cat >conftest.$ac_ext <<_ACEOF
     13305/* confdefs.h.  */
     13306_ACEOF
     13307cat confdefs.h >>conftest.$ac_ext
     13308cat >>conftest.$ac_ext <<_ACEOF
     13309/* end confdefs.h.  */
     13310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13311   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13312#define $ac_func innocuous_$ac_func
     13313
     13314/* System header to define __stub macros and hopefully few prototypes,
     13315    which can conflict with char $ac_func (); below.
     13316    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13317    <limits.h> exists even on freestanding compilers.  */
     13318
     13319#ifdef __STDC__
     13320# include <limits.h>
     13321#else
     13322# include <assert.h>
     13323#endif
     13324
     13325#undef $ac_func
     13326
     13327/* Override any GCC internal prototype to avoid an error.
     13328   Use char because int might match the return type of a GCC
     13329   builtin and then its argument prototype would still apply.  */
     13330#ifdef __cplusplus
     13331extern "C"
     13332#endif
     13333char $ac_func ();
     13334/* The GNU C library defines this for functions which it implements
     13335    to always fail with ENOSYS.  Some functions are actually named
     13336    something starting with __ and the normal name is an alias.  */
     13337#if defined __stub_$ac_func || defined __stub___$ac_func
     13338choke me
     13339#endif
     13340
     13341int
     13342main ()
     13343{
     13344return $ac_func ();
     13345  ;
     13346  return 0;
     13347}
     13348_ACEOF
     13349rm -f conftest.$ac_objext conftest$ac_exeext
     13350if { (ac_try="$ac_link"
     13351case "(($ac_try" in
     13352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13353  *) ac_try_echo=$ac_try;;
     13354esac
     13355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13356$as_echo "$ac_try_echo") >&5
     13357  (eval "$ac_link") 2>conftest.er1
     13358  ac_status=$?
     13359  grep -v '^ *+' conftest.er1 >conftest.err
     13360  rm -f conftest.er1
     13361  cat conftest.err >&5
     13362  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13363  (exit $ac_status); } && {
     13364         test -z "$ac_cxx_werror_flag" ||
     13365         test ! -s conftest.err
     13366       } && test -s conftest$ac_exeext && {
     13367         test "$cross_compiling" = yes ||
     13368         $as_test_x conftest$ac_exeext
     13369       }; then
     13370  eval "$as_ac_var=yes"
     13371else
     13372  $as_echo "$as_me: failed program was:" >&5
     13373sed 's/^/| /' conftest.$ac_ext >&5
     13374
     13375        eval "$as_ac_var=no"
     13376fi
     13377
     13378rm -rf conftest.dSYM
     13379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13380      conftest$ac_exeext conftest.$ac_ext
     13381fi
     13382ac_res=`eval 'as_val=${'$as_ac_var'}
     13383                 $as_echo "$as_val"'`
     13384               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13385$as_echo "$ac_res" >&6; }
     13386as_val=`eval 'as_val=${'$as_ac_var'}
     13387                 $as_echo "$as_val"'`
     13388   if test "x$as_val" = x""yes; then
    869013389  cat >>confdefs.h <<_ACEOF
    8691 #define HAVE_AVFORMAT_NEW_STREAM 1
     13390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    869213391_ACEOF
    869313392
     
    869513394done
    869613395
     13396
    869713397for ac_func in av_new_stream
    8698 do :
    8699   ac_fn_cxx_check_func "$LINENO" "av_new_stream" "ac_cv_func_av_new_stream"
    8700 if test "x$ac_cv_func_av_new_stream" = xyes; then :
     13398do
     13399as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13400{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13401$as_echo_n "checking for $ac_func... " >&6; }
     13402if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13403  $as_echo_n "(cached) " >&6
     13404else
     13405  cat >conftest.$ac_ext <<_ACEOF
     13406/* confdefs.h.  */
     13407_ACEOF
     13408cat confdefs.h >>conftest.$ac_ext
     13409cat >>conftest.$ac_ext <<_ACEOF
     13410/* end confdefs.h.  */
     13411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13412   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13413#define $ac_func innocuous_$ac_func
     13414
     13415/* System header to define __stub macros and hopefully few prototypes,
     13416    which can conflict with char $ac_func (); below.
     13417    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13418    <limits.h> exists even on freestanding compilers.  */
     13419
     13420#ifdef __STDC__
     13421# include <limits.h>
     13422#else
     13423# include <assert.h>
     13424#endif
     13425
     13426#undef $ac_func
     13427
     13428/* Override any GCC internal prototype to avoid an error.
     13429   Use char because int might match the return type of a GCC
     13430   builtin and then its argument prototype would still apply.  */
     13431#ifdef __cplusplus
     13432extern "C"
     13433#endif
     13434char $ac_func ();
     13435/* The GNU C library defines this for functions which it implements
     13436    to always fail with ENOSYS.  Some functions are actually named
     13437    something starting with __ and the normal name is an alias.  */
     13438#if defined __stub_$ac_func || defined __stub___$ac_func
     13439choke me
     13440#endif
     13441
     13442int
     13443main ()
     13444{
     13445return $ac_func ();
     13446  ;
     13447  return 0;
     13448}
     13449_ACEOF
     13450rm -f conftest.$ac_objext conftest$ac_exeext
     13451if { (ac_try="$ac_link"
     13452case "(($ac_try" in
     13453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13454  *) ac_try_echo=$ac_try;;
     13455esac
     13456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13457$as_echo "$ac_try_echo") >&5
     13458  (eval "$ac_link") 2>conftest.er1
     13459  ac_status=$?
     13460  grep -v '^ *+' conftest.er1 >conftest.err
     13461  rm -f conftest.er1
     13462  cat conftest.err >&5
     13463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13464  (exit $ac_status); } && {
     13465         test -z "$ac_cxx_werror_flag" ||
     13466         test ! -s conftest.err
     13467       } && test -s conftest$ac_exeext && {
     13468         test "$cross_compiling" = yes ||
     13469         $as_test_x conftest$ac_exeext
     13470       }; then
     13471  eval "$as_ac_var=yes"
     13472else
     13473  $as_echo "$as_me: failed program was:" >&5
     13474sed 's/^/| /' conftest.$ac_ext >&5
     13475
     13476        eval "$as_ac_var=no"
     13477fi
     13478
     13479rm -rf conftest.dSYM
     13480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13481      conftest$ac_exeext conftest.$ac_ext
     13482fi
     13483ac_res=`eval 'as_val=${'$as_ac_var'}
     13484                 $as_echo "$as_val"'`
     13485               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13486$as_echo "$ac_res" >&6; }
     13487as_val=`eval 'as_val=${'$as_ac_var'}
     13488                 $as_echo "$as_val"'`
     13489   if test "x$as_val" = x""yes; then
    870113490  cat >>confdefs.h <<_ACEOF
    8702 #define HAVE_AV_NEW_STREAM 1
     13491#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    870313492_ACEOF
    870413493
     
    870613495done
    870713496
     13497
    870813498for ac_func in avcodec_open
    8709 do :
    8710   ac_fn_cxx_check_func "$LINENO" "avcodec_open" "ac_cv_func_avcodec_open"
    8711 if test "x$ac_cv_func_avcodec_open" = xyes; then :
     13499do
     13500as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13501{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13502$as_echo_n "checking for $ac_func... " >&6; }
     13503if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13504  $as_echo_n "(cached) " >&6
     13505else
     13506  cat >conftest.$ac_ext <<_ACEOF
     13507/* confdefs.h.  */
     13508_ACEOF
     13509cat confdefs.h >>conftest.$ac_ext
     13510cat >>conftest.$ac_ext <<_ACEOF
     13511/* end confdefs.h.  */
     13512/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13513   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13514#define $ac_func innocuous_$ac_func
     13515
     13516/* System header to define __stub macros and hopefully few prototypes,
     13517    which can conflict with char $ac_func (); below.
     13518    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13519    <limits.h> exists even on freestanding compilers.  */
     13520
     13521#ifdef __STDC__
     13522# include <limits.h>
     13523#else
     13524# include <assert.h>
     13525#endif
     13526
     13527#undef $ac_func
     13528
     13529/* Override any GCC internal prototype to avoid an error.
     13530   Use char because int might match the return type of a GCC
     13531   builtin and then its argument prototype would still apply.  */
     13532#ifdef __cplusplus
     13533extern "C"
     13534#endif
     13535char $ac_func ();
     13536/* The GNU C library defines this for functions which it implements
     13537    to always fail with ENOSYS.  Some functions are actually named
     13538    something starting with __ and the normal name is an alias.  */
     13539#if defined __stub_$ac_func || defined __stub___$ac_func
     13540choke me
     13541#endif
     13542
     13543int
     13544main ()
     13545{
     13546return $ac_func ();
     13547  ;
     13548  return 0;
     13549}
     13550_ACEOF
     13551rm -f conftest.$ac_objext conftest$ac_exeext
     13552if { (ac_try="$ac_link"
     13553case "(($ac_try" in
     13554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13555  *) ac_try_echo=$ac_try;;
     13556esac
     13557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13558$as_echo "$ac_try_echo") >&5
     13559  (eval "$ac_link") 2>conftest.er1
     13560  ac_status=$?
     13561  grep -v '^ *+' conftest.er1 >conftest.err
     13562  rm -f conftest.er1
     13563  cat conftest.err >&5
     13564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13565  (exit $ac_status); } && {
     13566         test -z "$ac_cxx_werror_flag" ||
     13567         test ! -s conftest.err
     13568       } && test -s conftest$ac_exeext && {
     13569         test "$cross_compiling" = yes ||
     13570         $as_test_x conftest$ac_exeext
     13571       }; then
     13572  eval "$as_ac_var=yes"
     13573else
     13574  $as_echo "$as_me: failed program was:" >&5
     13575sed 's/^/| /' conftest.$ac_ext >&5
     13576
     13577        eval "$as_ac_var=no"
     13578fi
     13579
     13580rm -rf conftest.dSYM
     13581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13582      conftest$ac_exeext conftest.$ac_ext
     13583fi
     13584ac_res=`eval 'as_val=${'$as_ac_var'}
     13585                 $as_echo "$as_val"'`
     13586               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13587$as_echo "$ac_res" >&6; }
     13588as_val=`eval 'as_val=${'$as_ac_var'}
     13589                 $as_echo "$as_val"'`
     13590   if test "x$as_val" = x""yes; then
    871213591  cat >>confdefs.h <<_ACEOF
    8713 #define HAVE_AVCODEC_OPEN 1
     13592#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    871413593_ACEOF
    871513594
     
    871713596done
    871813597
     13598
    871913599for ac_func in avcodec_open2
    8720 do :
    8721   ac_fn_cxx_check_func "$LINENO" "avcodec_open2" "ac_cv_func_avcodec_open2"
    8722 if test "x$ac_cv_func_avcodec_open2" = xyes; then :
     13600do
     13601as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13602{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13603$as_echo_n "checking for $ac_func... " >&6; }
     13604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13605  $as_echo_n "(cached) " >&6
     13606else
     13607  cat >conftest.$ac_ext <<_ACEOF
     13608/* confdefs.h.  */
     13609_ACEOF
     13610cat confdefs.h >>conftest.$ac_ext
     13611cat >>conftest.$ac_ext <<_ACEOF
     13612/* end confdefs.h.  */
     13613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13614   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13615#define $ac_func innocuous_$ac_func
     13616
     13617/* System header to define __stub macros and hopefully few prototypes,
     13618    which can conflict with char $ac_func (); below.
     13619    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13620    <limits.h> exists even on freestanding compilers.  */
     13621
     13622#ifdef __STDC__
     13623# include <limits.h>
     13624#else
     13625# include <assert.h>
     13626#endif
     13627
     13628#undef $ac_func
     13629
     13630/* Override any GCC internal prototype to avoid an error.
     13631   Use char because int might match the return type of a GCC
     13632   builtin and then its argument prototype would still apply.  */
     13633#ifdef __cplusplus
     13634extern "C"
     13635#endif
     13636char $ac_func ();
     13637/* The GNU C library defines this for functions which it implements
     13638    to always fail with ENOSYS.  Some functions are actually named
     13639    something starting with __ and the normal name is an alias.  */
     13640#if defined __stub_$ac_func || defined __stub___$ac_func
     13641choke me
     13642#endif
     13643
     13644int
     13645main ()
     13646{
     13647return $ac_func ();
     13648  ;
     13649  return 0;
     13650}
     13651_ACEOF
     13652rm -f conftest.$ac_objext conftest$ac_exeext
     13653if { (ac_try="$ac_link"
     13654case "(($ac_try" in
     13655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13656  *) ac_try_echo=$ac_try;;
     13657esac
     13658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13659$as_echo "$ac_try_echo") >&5
     13660  (eval "$ac_link") 2>conftest.er1
     13661  ac_status=$?
     13662  grep -v '^ *+' conftest.er1 >conftest.err
     13663  rm -f conftest.er1
     13664  cat conftest.err >&5
     13665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13666  (exit $ac_status); } && {
     13667         test -z "$ac_cxx_werror_flag" ||
     13668         test ! -s conftest.err
     13669       } && test -s conftest$ac_exeext && {
     13670         test "$cross_compiling" = yes ||
     13671         $as_test_x conftest$ac_exeext
     13672       }; then
     13673  eval "$as_ac_var=yes"
     13674else
     13675  $as_echo "$as_me: failed program was:" >&5
     13676sed 's/^/| /' conftest.$ac_ext >&5
     13677
     13678        eval "$as_ac_var=no"
     13679fi
     13680
     13681rm -rf conftest.dSYM
     13682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13683      conftest$ac_exeext conftest.$ac_ext
     13684fi
     13685ac_res=`eval 'as_val=${'$as_ac_var'}
     13686                 $as_echo "$as_val"'`
     13687               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13688$as_echo "$ac_res" >&6; }
     13689as_val=`eval 'as_val=${'$as_ac_var'}
     13690                 $as_echo "$as_val"'`
     13691   if test "x$as_val" = x""yes; then
    872313692  cat >>confdefs.h <<_ACEOF
    8724 #define HAVE_AVCODEC_OPEN2 1
     13693#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    872513694_ACEOF
    872613695
     
    872813697done
    872913698
     13699
    873013700for ac_func in avcodec_decode_video2
    8731 do :
    8732   ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2"
    8733 if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then :
     13701do
     13702as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13703{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13704$as_echo_n "checking for $ac_func... " >&6; }
     13705if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13706  $as_echo_n "(cached) " >&6
     13707else
     13708  cat >conftest.$ac_ext <<_ACEOF
     13709/* confdefs.h.  */
     13710_ACEOF
     13711cat confdefs.h >>conftest.$ac_ext
     13712cat >>conftest.$ac_ext <<_ACEOF
     13713/* end confdefs.h.  */
     13714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13716#define $ac_func innocuous_$ac_func
     13717
     13718/* System header to define __stub macros and hopefully few prototypes,
     13719    which can conflict with char $ac_func (); below.
     13720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13721    <limits.h> exists even on freestanding compilers.  */
     13722
     13723#ifdef __STDC__
     13724# include <limits.h>
     13725#else
     13726# include <assert.h>
     13727#endif
     13728
     13729#undef $ac_func
     13730
     13731/* Override any GCC internal prototype to avoid an error.
     13732   Use char because int might match the return type of a GCC
     13733   builtin and then its argument prototype would still apply.  */
     13734#ifdef __cplusplus
     13735extern "C"
     13736#endif
     13737char $ac_func ();
     13738/* The GNU C library defines this for functions which it implements
     13739    to always fail with ENOSYS.  Some functions are actually named
     13740    something starting with __ and the normal name is an alias.  */
     13741#if defined __stub_$ac_func || defined __stub___$ac_func
     13742choke me
     13743#endif
     13744
     13745int
     13746main ()
     13747{
     13748return $ac_func ();
     13749  ;
     13750  return 0;
     13751}
     13752_ACEOF
     13753rm -f conftest.$ac_objext conftest$ac_exeext
     13754if { (ac_try="$ac_link"
     13755case "(($ac_try" in
     13756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13757  *) ac_try_echo=$ac_try;;
     13758esac
     13759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13760$as_echo "$ac_try_echo") >&5
     13761  (eval "$ac_link") 2>conftest.er1
     13762  ac_status=$?
     13763  grep -v '^ *+' conftest.er1 >conftest.err
     13764  rm -f conftest.er1
     13765  cat conftest.err >&5
     13766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13767  (exit $ac_status); } && {
     13768         test -z "$ac_cxx_werror_flag" ||
     13769         test ! -s conftest.err
     13770       } && test -s conftest$ac_exeext && {
     13771         test "$cross_compiling" = yes ||
     13772         $as_test_x conftest$ac_exeext
     13773       }; then
     13774  eval "$as_ac_var=yes"
     13775else
     13776  $as_echo "$as_me: failed program was:" >&5
     13777sed 's/^/| /' conftest.$ac_ext >&5
     13778
     13779        eval "$as_ac_var=no"
     13780fi
     13781
     13782rm -rf conftest.dSYM
     13783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13784      conftest$ac_exeext conftest.$ac_ext
     13785fi
     13786ac_res=`eval 'as_val=${'$as_ac_var'}
     13787                 $as_echo "$as_val"'`
     13788               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13789$as_echo "$ac_res" >&6; }
     13790as_val=`eval 'as_val=${'$as_ac_var'}
     13791                 $as_echo "$as_val"'`
     13792   if test "x$as_val" = x""yes; then
    873413793  cat >>confdefs.h <<_ACEOF
    8735 #define HAVE_AVCODEC_DECODE_VIDEO2 1
     13794#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    873613795_ACEOF
    873713796
     
    873913798done
    874013799
     13800
    874113801for ac_func in avcodec_decode_video
    8742 do :
    8743   ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video"
    8744 if test "x$ac_cv_func_avcodec_decode_video" = xyes; then :
     13802do
     13803as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13804{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13805$as_echo_n "checking for $ac_func... " >&6; }
     13806if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13807  $as_echo_n "(cached) " >&6
     13808else
     13809  cat >conftest.$ac_ext <<_ACEOF
     13810/* confdefs.h.  */
     13811_ACEOF
     13812cat confdefs.h >>conftest.$ac_ext
     13813cat >>conftest.$ac_ext <<_ACEOF
     13814/* end confdefs.h.  */
     13815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13816   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13817#define $ac_func innocuous_$ac_func
     13818
     13819/* System header to define __stub macros and hopefully few prototypes,
     13820    which can conflict with char $ac_func (); below.
     13821    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13822    <limits.h> exists even on freestanding compilers.  */
     13823
     13824#ifdef __STDC__
     13825# include <limits.h>
     13826#else
     13827# include <assert.h>
     13828#endif
     13829
     13830#undef $ac_func
     13831
     13832/* Override any GCC internal prototype to avoid an error.
     13833   Use char because int might match the return type of a GCC
     13834   builtin and then its argument prototype would still apply.  */
     13835#ifdef __cplusplus
     13836extern "C"
     13837#endif
     13838char $ac_func ();
     13839/* The GNU C library defines this for functions which it implements
     13840    to always fail with ENOSYS.  Some functions are actually named
     13841    something starting with __ and the normal name is an alias.  */
     13842#if defined __stub_$ac_func || defined __stub___$ac_func
     13843choke me
     13844#endif
     13845
     13846int
     13847main ()
     13848{
     13849return $ac_func ();
     13850  ;
     13851  return 0;
     13852}
     13853_ACEOF
     13854rm -f conftest.$ac_objext conftest$ac_exeext
     13855if { (ac_try="$ac_link"
     13856case "(($ac_try" in
     13857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13858  *) ac_try_echo=$ac_try;;
     13859esac
     13860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13861$as_echo "$ac_try_echo") >&5
     13862  (eval "$ac_link") 2>conftest.er1
     13863  ac_status=$?
     13864  grep -v '^ *+' conftest.er1 >conftest.err
     13865  rm -f conftest.er1
     13866  cat conftest.err >&5
     13867  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13868  (exit $ac_status); } && {
     13869         test -z "$ac_cxx_werror_flag" ||
     13870         test ! -s conftest.err
     13871       } && test -s conftest$ac_exeext && {
     13872         test "$cross_compiling" = yes ||
     13873         $as_test_x conftest$ac_exeext
     13874       }; then
     13875  eval "$as_ac_var=yes"
     13876else
     13877  $as_echo "$as_me: failed program was:" >&5
     13878sed 's/^/| /' conftest.$ac_ext >&5
     13879
     13880        eval "$as_ac_var=no"
     13881fi
     13882
     13883rm -rf conftest.dSYM
     13884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13885      conftest$ac_exeext conftest.$ac_ext
     13886fi
     13887ac_res=`eval 'as_val=${'$as_ac_var'}
     13888                 $as_echo "$as_val"'`
     13889               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13890$as_echo "$ac_res" >&6; }
     13891as_val=`eval 'as_val=${'$as_ac_var'}
     13892                 $as_echo "$as_val"'`
     13893   if test "x$as_val" = x""yes; then
    874513894  cat >>confdefs.h <<_ACEOF
    8746 #define HAVE_AVCODEC_DECODE_VIDEO 1
     13895#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    874713896_ACEOF
    874813897
     
    875013899done
    875113900
     13901
    875213902for ac_func in avcodec_encode_video2
    8753 do :
    8754   ac_fn_cxx_check_func "$LINENO" "avcodec_encode_video2" "ac_cv_func_avcodec_encode_video2"
    8755 if test "x$ac_cv_func_avcodec_encode_video2" = xyes; then :
     13903do
     13904as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13905{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13906$as_echo_n "checking for $ac_func... " >&6; }
     13907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13908  $as_echo_n "(cached) " >&6
     13909else
     13910  cat >conftest.$ac_ext <<_ACEOF
     13911/* confdefs.h.  */
     13912_ACEOF
     13913cat confdefs.h >>conftest.$ac_ext
     13914cat >>conftest.$ac_ext <<_ACEOF
     13915/* end confdefs.h.  */
     13916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13917   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13918#define $ac_func innocuous_$ac_func
     13919
     13920/* System header to define __stub macros and hopefully few prototypes,
     13921    which can conflict with char $ac_func (); below.
     13922    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13923    <limits.h> exists even on freestanding compilers.  */
     13924
     13925#ifdef __STDC__
     13926# include <limits.h>
     13927#else
     13928# include <assert.h>
     13929#endif
     13930
     13931#undef $ac_func
     13932
     13933/* Override any GCC internal prototype to avoid an error.
     13934   Use char because int might match the return type of a GCC
     13935   builtin and then its argument prototype would still apply.  */
     13936#ifdef __cplusplus
     13937extern "C"
     13938#endif
     13939char $ac_func ();
     13940/* The GNU C library defines this for functions which it implements
     13941    to always fail with ENOSYS.  Some functions are actually named
     13942    something starting with __ and the normal name is an alias.  */
     13943#if defined __stub_$ac_func || defined __stub___$ac_func
     13944choke me
     13945#endif
     13946
     13947int
     13948main ()
     13949{
     13950return $ac_func ();
     13951  ;
     13952  return 0;
     13953}
     13954_ACEOF
     13955rm -f conftest.$ac_objext conftest$ac_exeext
     13956if { (ac_try="$ac_link"
     13957case "(($ac_try" in
     13958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13959  *) ac_try_echo=$ac_try;;
     13960esac
     13961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13962$as_echo "$ac_try_echo") >&5
     13963  (eval "$ac_link") 2>conftest.er1
     13964  ac_status=$?
     13965  grep -v '^ *+' conftest.er1 >conftest.err
     13966  rm -f conftest.er1
     13967  cat conftest.err >&5
     13968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13969  (exit $ac_status); } && {
     13970         test -z "$ac_cxx_werror_flag" ||
     13971         test ! -s conftest.err
     13972       } && test -s conftest$ac_exeext && {
     13973         test "$cross_compiling" = yes ||
     13974         $as_test_x conftest$ac_exeext
     13975       }; then
     13976  eval "$as_ac_var=yes"
     13977else
     13978  $as_echo "$as_me: failed program was:" >&5
     13979sed 's/^/| /' conftest.$ac_ext >&5
     13980
     13981        eval "$as_ac_var=no"
     13982fi
     13983
     13984rm -rf conftest.dSYM
     13985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13986      conftest$ac_exeext conftest.$ac_ext
     13987fi
     13988ac_res=`eval 'as_val=${'$as_ac_var'}
     13989                 $as_echo "$as_val"'`
     13990               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13991$as_echo "$ac_res" >&6; }
     13992as_val=`eval 'as_val=${'$as_ac_var'}
     13993                 $as_echo "$as_val"'`
     13994   if test "x$as_val" = x""yes; then
    875613995  cat >>confdefs.h <<_ACEOF
    8757 #define HAVE_AVCODEC_ENCODE_VIDEO2 1
     13996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    875813997_ACEOF
    875913998
     
    876114000done
    876214001
     14002
    876314003for ac_func in avcodec_encode_video
    8764 do :
    8765   ac_fn_cxx_check_func "$LINENO" "avcodec_encode_video" "ac_cv_func_avcodec_encode_video"
    8766 if test "x$ac_cv_func_avcodec_encode_video" = xyes; then :
     14004do
     14005as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14006{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14007$as_echo_n "checking for $ac_func... " >&6; }
     14008if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14009  $as_echo_n "(cached) " >&6
     14010else
     14011  cat >conftest.$ac_ext <<_ACEOF
     14012/* confdefs.h.  */
     14013_ACEOF
     14014cat confdefs.h >>conftest.$ac_ext
     14015cat >>conftest.$ac_ext <<_ACEOF
     14016/* end confdefs.h.  */
     14017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14018   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14019#define $ac_func innocuous_$ac_func
     14020
     14021/* System header to define __stub macros and hopefully few prototypes,
     14022    which can conflict with char $ac_func (); below.
     14023    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14024    <limits.h> exists even on freestanding compilers.  */
     14025
     14026#ifdef __STDC__
     14027# include <limits.h>
     14028#else
     14029# include <assert.h>
     14030#endif
     14031
     14032#undef $ac_func
     14033
     14034/* Override any GCC internal prototype to avoid an error.
     14035   Use char because int might match the return type of a GCC
     14036   builtin and then its argument prototype would still apply.  */
     14037#ifdef __cplusplus
     14038extern "C"
     14039#endif
     14040char $ac_func ();
     14041/* The GNU C library defines this for functions which it implements
     14042    to always fail with ENOSYS.  Some functions are actually named
     14043    something starting with __ and the normal name is an alias.  */
     14044#if defined __stub_$ac_func || defined __stub___$ac_func
     14045choke me
     14046#endif
     14047
     14048int
     14049main ()
     14050{
     14051return $ac_func ();
     14052  ;
     14053  return 0;
     14054}
     14055_ACEOF
     14056rm -f conftest.$ac_objext conftest$ac_exeext
     14057if { (ac_try="$ac_link"
     14058case "(($ac_try" in
     14059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14060  *) ac_try_echo=$ac_try;;
     14061esac
     14062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14063$as_echo "$ac_try_echo") >&5
     14064  (eval "$ac_link") 2>conftest.er1
     14065  ac_status=$?
     14066  grep -v '^ *+' conftest.er1 >conftest.err
     14067  rm -f conftest.er1
     14068  cat conftest.err >&5
     14069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14070  (exit $ac_status); } && {
     14071         test -z "$ac_cxx_werror_flag" ||
     14072         test ! -s conftest.err
     14073       } && test -s conftest$ac_exeext && {
     14074         test "$cross_compiling" = yes ||
     14075         $as_test_x conftest$ac_exeext
     14076       }; then
     14077  eval "$as_ac_var=yes"
     14078else
     14079  $as_echo "$as_me: failed program was:" >&5
     14080sed 's/^/| /' conftest.$ac_ext >&5
     14081
     14082        eval "$as_ac_var=no"
     14083fi
     14084
     14085rm -rf conftest.dSYM
     14086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14087      conftest$ac_exeext conftest.$ac_ext
     14088fi
     14089ac_res=`eval 'as_val=${'$as_ac_var'}
     14090                 $as_echo "$as_val"'`
     14091               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14092$as_echo "$ac_res" >&6; }
     14093as_val=`eval 'as_val=${'$as_ac_var'}
     14094                 $as_echo "$as_val"'`
     14095   if test "x$as_val" = x""yes; then
    876714096  cat >>confdefs.h <<_ACEOF
    8768 #define HAVE_AVCODEC_ENCODE_VIDEO 1
     14097#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    876914098_ACEOF
    877014099
     
    877214101done
    877314102
     14103
    877414104for ac_func in avformat_open_input
    8775 do :
    8776   ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input"
    8777 if test "x$ac_cv_func_avformat_open_input" = xyes; then :
     14105do
     14106as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14107{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14108$as_echo_n "checking for $ac_func... " >&6; }
     14109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14110  $as_echo_n "(cached) " >&6
     14111else
     14112  cat >conftest.$ac_ext <<_ACEOF
     14113/* confdefs.h.  */
     14114_ACEOF
     14115cat confdefs.h >>conftest.$ac_ext
     14116cat >>conftest.$ac_ext <<_ACEOF
     14117/* end confdefs.h.  */
     14118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14119   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14120#define $ac_func innocuous_$ac_func
     14121
     14122/* System header to define __stub macros and hopefully few prototypes,
     14123    which can conflict with char $ac_func (); below.
     14124    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14125    <limits.h> exists even on freestanding compilers.  */
     14126
     14127#ifdef __STDC__
     14128# include <limits.h>
     14129#else
     14130# include <assert.h>
     14131#endif
     14132
     14133#undef $ac_func
     14134
     14135/* Override any GCC internal prototype to avoid an error.
     14136   Use char because int might match the return type of a GCC
     14137   builtin and then its argument prototype would still apply.  */
     14138#ifdef __cplusplus
     14139extern "C"
     14140#endif
     14141char $ac_func ();
     14142/* The GNU C library defines this for functions which it implements
     14143    to always fail with ENOSYS.  Some functions are actually named
     14144    something starting with __ and the normal name is an alias.  */
     14145#if defined __stub_$ac_func || defined __stub___$ac_func
     14146choke me
     14147#endif
     14148
     14149int
     14150main ()
     14151{
     14152return $ac_func ();
     14153  ;
     14154  return 0;
     14155}
     14156_ACEOF
     14157rm -f conftest.$ac_objext conftest$ac_exeext
     14158if { (ac_try="$ac_link"
     14159case "(($ac_try" in
     14160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14161  *) ac_try_echo=$ac_try;;
     14162esac
     14163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14164$as_echo "$ac_try_echo") >&5
     14165  (eval "$ac_link") 2>conftest.er1
     14166  ac_status=$?
     14167  grep -v '^ *+' conftest.er1 >conftest.err
     14168  rm -f conftest.er1
     14169  cat conftest.err >&5
     14170  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14171  (exit $ac_status); } && {
     14172         test -z "$ac_cxx_werror_flag" ||
     14173         test ! -s conftest.err
     14174       } && test -s conftest$ac_exeext && {
     14175         test "$cross_compiling" = yes ||
     14176         $as_test_x conftest$ac_exeext
     14177       }; then
     14178  eval "$as_ac_var=yes"
     14179else
     14180  $as_echo "$as_me: failed program was:" >&5
     14181sed 's/^/| /' conftest.$ac_ext >&5
     14182
     14183        eval "$as_ac_var=no"
     14184fi
     14185
     14186rm -rf conftest.dSYM
     14187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14188      conftest$ac_exeext conftest.$ac_ext
     14189fi
     14190ac_res=`eval 'as_val=${'$as_ac_var'}
     14191                 $as_echo "$as_val"'`
     14192               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14193$as_echo "$ac_res" >&6; }
     14194as_val=`eval 'as_val=${'$as_ac_var'}
     14195                 $as_echo "$as_val"'`
     14196   if test "x$as_val" = x""yes; then
    877814197  cat >>confdefs.h <<_ACEOF
    8779 #define HAVE_AVFORMAT_OPEN_INPUT 1
     14198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    878014199_ACEOF
    878114200
     
    878314202done
    878414203
     14204
    878514205for ac_func in av_open_input_file
    8786 do :
    8787   ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file"
    8788 if test "x$ac_cv_func_av_open_input_file" = xyes; then :
     14206do
     14207as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14208{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14209$as_echo_n "checking for $ac_func... " >&6; }
     14210if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14211  $as_echo_n "(cached) " >&6
     14212else
     14213  cat >conftest.$ac_ext <<_ACEOF
     14214/* confdefs.h.  */
     14215_ACEOF
     14216cat confdefs.h >>conftest.$ac_ext
     14217cat >>conftest.$ac_ext <<_ACEOF
     14218/* end confdefs.h.  */
     14219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14220   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14221#define $ac_func innocuous_$ac_func
     14222
     14223/* System header to define __stub macros and hopefully few prototypes,
     14224    which can conflict with char $ac_func (); below.
     14225    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14226    <limits.h> exists even on freestanding compilers.  */
     14227
     14228#ifdef __STDC__
     14229# include <limits.h>
     14230#else
     14231# include <assert.h>
     14232#endif
     14233
     14234#undef $ac_func
     14235
     14236/* Override any GCC internal prototype to avoid an error.
     14237   Use char because int might match the return type of a GCC
     14238   builtin and then its argument prototype would still apply.  */
     14239#ifdef __cplusplus
     14240extern "C"
     14241#endif
     14242char $ac_func ();
     14243/* The GNU C library defines this for functions which it implements
     14244    to always fail with ENOSYS.  Some functions are actually named
     14245    something starting with __ and the normal name is an alias.  */
     14246#if defined __stub_$ac_func || defined __stub___$ac_func
     14247choke me
     14248#endif
     14249
     14250int
     14251main ()
     14252{
     14253return $ac_func ();
     14254  ;
     14255  return 0;
     14256}
     14257_ACEOF
     14258rm -f conftest.$ac_objext conftest$ac_exeext
     14259if { (ac_try="$ac_link"
     14260case "(($ac_try" in
     14261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14262  *) ac_try_echo=$ac_try;;
     14263esac
     14264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14265$as_echo "$ac_try_echo") >&5
     14266  (eval "$ac_link") 2>conftest.er1
     14267  ac_status=$?
     14268  grep -v '^ *+' conftest.er1 >conftest.err
     14269  rm -f conftest.er1
     14270  cat conftest.err >&5
     14271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14272  (exit $ac_status); } && {
     14273         test -z "$ac_cxx_werror_flag" ||
     14274         test ! -s conftest.err
     14275       } && test -s conftest$ac_exeext && {
     14276         test "$cross_compiling" = yes ||
     14277         $as_test_x conftest$ac_exeext
     14278       }; then
     14279  eval "$as_ac_var=yes"
     14280else
     14281  $as_echo "$as_me: failed program was:" >&5
     14282sed 's/^/| /' conftest.$ac_ext >&5
     14283
     14284        eval "$as_ac_var=no"
     14285fi
     14286
     14287rm -rf conftest.dSYM
     14288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14289      conftest$ac_exeext conftest.$ac_ext
     14290fi
     14291ac_res=`eval 'as_val=${'$as_ac_var'}
     14292                 $as_echo "$as_val"'`
     14293               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14294$as_echo "$ac_res" >&6; }
     14295as_val=`eval 'as_val=${'$as_ac_var'}
     14296                 $as_echo "$as_val"'`
     14297   if test "x$as_val" = x""yes; then
    878914298  cat >>confdefs.h <<_ACEOF
    8790 #define HAVE_AV_OPEN_INPUT_FILE 1
     14299#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    879114300_ACEOF
    879214301
     
    879414303done
    879514304
     14305
    879614306for ac_func in av_guess_format
    8797 do :
    8798   ac_fn_cxx_check_func "$LINENO" "av_guess_format" "ac_cv_func_av_guess_format"
    8799 if test "x$ac_cv_func_av_guess_format" = xyes; then :
     14307do
     14308as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14309{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14310$as_echo_n "checking for $ac_func... " >&6; }
     14311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14312  $as_echo_n "(cached) " >&6
     14313else
     14314  cat >conftest.$ac_ext <<_ACEOF
     14315/* confdefs.h.  */
     14316_ACEOF
     14317cat confdefs.h >>conftest.$ac_ext
     14318cat >>conftest.$ac_ext <<_ACEOF
     14319/* end confdefs.h.  */
     14320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14321   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14322#define $ac_func innocuous_$ac_func
     14323
     14324/* System header to define __stub macros and hopefully few prototypes,
     14325    which can conflict with char $ac_func (); below.
     14326    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14327    <limits.h> exists even on freestanding compilers.  */
     14328
     14329#ifdef __STDC__
     14330# include <limits.h>
     14331#else
     14332# include <assert.h>
     14333#endif
     14334
     14335#undef $ac_func
     14336
     14337/* Override any GCC internal prototype to avoid an error.
     14338   Use char because int might match the return type of a GCC
     14339   builtin and then its argument prototype would still apply.  */
     14340#ifdef __cplusplus
     14341extern "C"
     14342#endif
     14343char $ac_func ();
     14344/* The GNU C library defines this for functions which it implements
     14345    to always fail with ENOSYS.  Some functions are actually named
     14346    something starting with __ and the normal name is an alias.  */
     14347#if defined __stub_$ac_func || defined __stub___$ac_func
     14348choke me
     14349#endif
     14350
     14351int
     14352main ()
     14353{
     14354return $ac_func ();
     14355  ;
     14356  return 0;
     14357}
     14358_ACEOF
     14359rm -f conftest.$ac_objext conftest$ac_exeext
     14360if { (ac_try="$ac_link"
     14361case "(($ac_try" in
     14362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14363  *) ac_try_echo=$ac_try;;
     14364esac
     14365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14366$as_echo "$ac_try_echo") >&5
     14367  (eval "$ac_link") 2>conftest.er1
     14368  ac_status=$?
     14369  grep -v '^ *+' conftest.er1 >conftest.err
     14370  rm -f conftest.er1
     14371  cat conftest.err >&5
     14372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14373  (exit $ac_status); } && {
     14374         test -z "$ac_cxx_werror_flag" ||
     14375         test ! -s conftest.err
     14376       } && test -s conftest$ac_exeext && {
     14377         test "$cross_compiling" = yes ||
     14378         $as_test_x conftest$ac_exeext
     14379       }; then
     14380  eval "$as_ac_var=yes"
     14381else
     14382  $as_echo "$as_me: failed program was:" >&5
     14383sed 's/^/| /' conftest.$ac_ext >&5
     14384
     14385        eval "$as_ac_var=no"
     14386fi
     14387
     14388rm -rf conftest.dSYM
     14389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14390      conftest$ac_exeext conftest.$ac_ext
     14391fi
     14392ac_res=`eval 'as_val=${'$as_ac_var'}
     14393                 $as_echo "$as_val"'`
     14394               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14395$as_echo "$ac_res" >&6; }
     14396as_val=`eval 'as_val=${'$as_ac_var'}
     14397                 $as_echo "$as_val"'`
     14398   if test "x$as_val" = x""yes; then
    880014399  cat >>confdefs.h <<_ACEOF
    8801 #define HAVE_AV_GUESS_FORMAT 1
     14400#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    880214401_ACEOF
    880314402
     
    880514404done
    880614405
     14406
    880714407for ac_func in guess_format
    8808 do :
    8809   ac_fn_cxx_check_func "$LINENO" "guess_format" "ac_cv_func_guess_format"
    8810 if test "x$ac_cv_func_guess_format" = xyes; then :
     14408do
     14409as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14410{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14411$as_echo_n "checking for $ac_func... " >&6; }
     14412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14413  $as_echo_n "(cached) " >&6
     14414else
     14415  cat >conftest.$ac_ext <<_ACEOF
     14416/* confdefs.h.  */
     14417_ACEOF
     14418cat confdefs.h >>conftest.$ac_ext
     14419cat >>conftest.$ac_ext <<_ACEOF
     14420/* end confdefs.h.  */
     14421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14422   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14423#define $ac_func innocuous_$ac_func
     14424
     14425/* System header to define __stub macros and hopefully few prototypes,
     14426    which can conflict with char $ac_func (); below.
     14427    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14428    <limits.h> exists even on freestanding compilers.  */
     14429
     14430#ifdef __STDC__
     14431# include <limits.h>
     14432#else
     14433# include <assert.h>
     14434#endif
     14435
     14436#undef $ac_func
     14437
     14438/* Override any GCC internal prototype to avoid an error.
     14439   Use char because int might match the return type of a GCC
     14440   builtin and then its argument prototype would still apply.  */
     14441#ifdef __cplusplus
     14442extern "C"
     14443#endif
     14444char $ac_func ();
     14445/* The GNU C library defines this for functions which it implements
     14446    to always fail with ENOSYS.  Some functions are actually named
     14447    something starting with __ and the normal name is an alias.  */
     14448#if defined __stub_$ac_func || defined __stub___$ac_func
     14449choke me
     14450#endif
     14451
     14452int
     14453main ()
     14454{
     14455return $ac_func ();
     14456  ;
     14457  return 0;
     14458}
     14459_ACEOF
     14460rm -f conftest.$ac_objext conftest$ac_exeext
     14461if { (ac_try="$ac_link"
     14462case "(($ac_try" in
     14463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14464  *) ac_try_echo=$ac_try;;
     14465esac
     14466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14467$as_echo "$ac_try_echo") >&5
     14468  (eval "$ac_link") 2>conftest.er1
     14469  ac_status=$?
     14470  grep -v '^ *+' conftest.er1 >conftest.err
     14471  rm -f conftest.er1
     14472  cat conftest.err >&5
     14473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14474  (exit $ac_status); } && {
     14475         test -z "$ac_cxx_werror_flag" ||
     14476         test ! -s conftest.err
     14477       } && test -s conftest$ac_exeext && {
     14478         test "$cross_compiling" = yes ||
     14479         $as_test_x conftest$ac_exeext
     14480       }; then
     14481  eval "$as_ac_var=yes"
     14482else
     14483  $as_echo "$as_me: failed program was:" >&5
     14484sed 's/^/| /' conftest.$ac_ext >&5
     14485
     14486        eval "$as_ac_var=no"
     14487fi
     14488
     14489rm -rf conftest.dSYM
     14490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14491      conftest$ac_exeext conftest.$ac_ext
     14492fi
     14493ac_res=`eval 'as_val=${'$as_ac_var'}
     14494                 $as_echo "$as_val"'`
     14495               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14496$as_echo "$ac_res" >&6; }
     14497as_val=`eval 'as_val=${'$as_ac_var'}
     14498                 $as_echo "$as_val"'`
     14499   if test "x$as_val" = x""yes; then
    881114500  cat >>confdefs.h <<_ACEOF
    8812 #define HAVE_GUESS_FORMAT 1
     14501#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    881314502_ACEOF
    881414503
     
    881614505done
    881714506
     14507
    881814508for ac_func in av_dump_format
    8819 do :
    8820   ac_fn_cxx_check_func "$LINENO" "av_dump_format" "ac_cv_func_av_dump_format"
    8821 if test "x$ac_cv_func_av_dump_format" = xyes; then :
     14509do
     14510as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14511{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14512$as_echo_n "checking for $ac_func... " >&6; }
     14513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14514  $as_echo_n "(cached) " >&6
     14515else
     14516  cat >conftest.$ac_ext <<_ACEOF
     14517/* confdefs.h.  */
     14518_ACEOF
     14519cat confdefs.h >>conftest.$ac_ext
     14520cat >>conftest.$ac_ext <<_ACEOF
     14521/* end confdefs.h.  */
     14522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14523   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14524#define $ac_func innocuous_$ac_func
     14525
     14526/* System header to define __stub macros and hopefully few prototypes,
     14527    which can conflict with char $ac_func (); below.
     14528    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14529    <limits.h> exists even on freestanding compilers.  */
     14530
     14531#ifdef __STDC__
     14532# include <limits.h>
     14533#else
     14534# include <assert.h>
     14535#endif
     14536
     14537#undef $ac_func
     14538
     14539/* Override any GCC internal prototype to avoid an error.
     14540   Use char because int might match the return type of a GCC
     14541   builtin and then its argument prototype would still apply.  */
     14542#ifdef __cplusplus
     14543extern "C"
     14544#endif
     14545char $ac_func ();
     14546/* The GNU C library defines this for functions which it implements
     14547    to always fail with ENOSYS.  Some functions are actually named
     14548    something starting with __ and the normal name is an alias.  */
     14549#if defined __stub_$ac_func || defined __stub___$ac_func
     14550choke me
     14551#endif
     14552
     14553int
     14554main ()
     14555{
     14556return $ac_func ();
     14557  ;
     14558  return 0;
     14559}
     14560_ACEOF
     14561rm -f conftest.$ac_objext conftest$ac_exeext
     14562if { (ac_try="$ac_link"
     14563case "(($ac_try" in
     14564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14565  *) ac_try_echo=$ac_try;;
     14566esac
     14567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14568$as_echo "$ac_try_echo") >&5
     14569  (eval "$ac_link") 2>conftest.er1
     14570  ac_status=$?
     14571  grep -v '^ *+' conftest.er1 >conftest.err
     14572  rm -f conftest.er1
     14573  cat conftest.err >&5
     14574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14575  (exit $ac_status); } && {
     14576         test -z "$ac_cxx_werror_flag" ||
     14577         test ! -s conftest.err
     14578       } && test -s conftest$ac_exeext && {
     14579         test "$cross_compiling" = yes ||
     14580         $as_test_x conftest$ac_exeext
     14581       }; then
     14582  eval "$as_ac_var=yes"
     14583else
     14584  $as_echo "$as_me: failed program was:" >&5
     14585sed 's/^/| /' conftest.$ac_ext >&5
     14586
     14587        eval "$as_ac_var=no"
     14588fi
     14589
     14590rm -rf conftest.dSYM
     14591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14592      conftest$ac_exeext conftest.$ac_ext
     14593fi
     14594ac_res=`eval 'as_val=${'$as_ac_var'}
     14595                 $as_echo "$as_val"'`
     14596               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14597$as_echo "$ac_res" >&6; }
     14598as_val=`eval 'as_val=${'$as_ac_var'}
     14599                 $as_echo "$as_val"'`
     14600   if test "x$as_val" = x""yes; then
    882214601  cat >>confdefs.h <<_ACEOF
    8823 #define HAVE_AV_DUMP_FORMAT 1
     14602#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    882414603_ACEOF
    882514604
     
    882714606done
    882814607
     14608
    882914609for ac_func in dump_format
    8830 do :
    8831   ac_fn_cxx_check_func "$LINENO" "dump_format" "ac_cv_func_dump_format"
    8832 if test "x$ac_cv_func_dump_format" = xyes; then :
     14610do
     14611as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14612{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14613$as_echo_n "checking for $ac_func... " >&6; }
     14614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14615  $as_echo_n "(cached) " >&6
     14616else
     14617  cat >conftest.$ac_ext <<_ACEOF
     14618/* confdefs.h.  */
     14619_ACEOF
     14620cat confdefs.h >>conftest.$ac_ext
     14621cat >>conftest.$ac_ext <<_ACEOF
     14622/* end confdefs.h.  */
     14623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14624   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14625#define $ac_func innocuous_$ac_func
     14626
     14627/* System header to define __stub macros and hopefully few prototypes,
     14628    which can conflict with char $ac_func (); below.
     14629    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14630    <limits.h> exists even on freestanding compilers.  */
     14631
     14632#ifdef __STDC__
     14633# include <limits.h>
     14634#else
     14635# include <assert.h>
     14636#endif
     14637
     14638#undef $ac_func
     14639
     14640/* Override any GCC internal prototype to avoid an error.
     14641   Use char because int might match the return type of a GCC
     14642   builtin and then its argument prototype would still apply.  */
     14643#ifdef __cplusplus
     14644extern "C"
     14645#endif
     14646char $ac_func ();
     14647/* The GNU C library defines this for functions which it implements
     14648    to always fail with ENOSYS.  Some functions are actually named
     14649    something starting with __ and the normal name is an alias.  */
     14650#if defined __stub_$ac_func || defined __stub___$ac_func
     14651choke me
     14652#endif
     14653
     14654int
     14655main ()
     14656{
     14657return $ac_func ();
     14658  ;
     14659  return 0;
     14660}
     14661_ACEOF
     14662rm -f conftest.$ac_objext conftest$ac_exeext
     14663if { (ac_try="$ac_link"
     14664case "(($ac_try" in
     14665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14666  *) ac_try_echo=$ac_try;;
     14667esac
     14668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14669$as_echo "$ac_try_echo") >&5
     14670  (eval "$ac_link") 2>conftest.er1
     14671  ac_status=$?
     14672  grep -v '^ *+' conftest.er1 >conftest.err
     14673  rm -f conftest.er1
     14674  cat conftest.err >&5
     14675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14676  (exit $ac_status); } && {
     14677         test -z "$ac_cxx_werror_flag" ||
     14678         test ! -s conftest.err
     14679       } && test -s conftest$ac_exeext && {
     14680         test "$cross_compiling" = yes ||
     14681         $as_test_x conftest$ac_exeext
     14682       }; then
     14683  eval "$as_ac_var=yes"
     14684else
     14685  $as_echo "$as_me: failed program was:" >&5
     14686sed 's/^/| /' conftest.$ac_ext >&5
     14687
     14688        eval "$as_ac_var=no"
     14689fi
     14690
     14691rm -rf conftest.dSYM
     14692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14693      conftest$ac_exeext conftest.$ac_ext
     14694fi
     14695ac_res=`eval 'as_val=${'$as_ac_var'}
     14696                 $as_echo "$as_val"'`
     14697               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14698$as_echo "$ac_res" >&6; }
     14699as_val=`eval 'as_val=${'$as_ac_var'}
     14700                 $as_echo "$as_val"'`
     14701   if test "x$as_val" = x""yes; then
    883314702  cat >>confdefs.h <<_ACEOF
    8834 #define HAVE_DUMP_FORMAT 1
     14703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    883514704_ACEOF
    883614705
     
    883814707done
    883914708
     14709
    884014710for ac_func in avio_open
    8841 do :
    8842   ac_fn_cxx_check_func "$LINENO" "avio_open" "ac_cv_func_avio_open"
    8843 if test "x$ac_cv_func_avio_open" = xyes; then :
     14711do
     14712as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14713{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14714$as_echo_n "checking for $ac_func... " >&6; }
     14715if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14716  $as_echo_n "(cached) " >&6
     14717else
     14718  cat >conftest.$ac_ext <<_ACEOF
     14719/* confdefs.h.  */
     14720_ACEOF
     14721cat confdefs.h >>conftest.$ac_ext
     14722cat >>conftest.$ac_ext <<_ACEOF
     14723/* end confdefs.h.  */
     14724/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14725   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14726#define $ac_func innocuous_$ac_func
     14727
     14728/* System header to define __stub macros and hopefully few prototypes,
     14729    which can conflict with char $ac_func (); below.
     14730    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14731    <limits.h> exists even on freestanding compilers.  */
     14732
     14733#ifdef __STDC__
     14734# include <limits.h>
     14735#else
     14736# include <assert.h>
     14737#endif
     14738
     14739#undef $ac_func
     14740
     14741/* Override any GCC internal prototype to avoid an error.
     14742   Use char because int might match the return type of a GCC
     14743   builtin and then its argument prototype would still apply.  */
     14744#ifdef __cplusplus
     14745extern "C"
     14746#endif
     14747char $ac_func ();
     14748/* The GNU C library defines this for functions which it implements
     14749    to always fail with ENOSYS.  Some functions are actually named
     14750    something starting with __ and the normal name is an alias.  */
     14751#if defined __stub_$ac_func || defined __stub___$ac_func
     14752choke me
     14753#endif
     14754
     14755int
     14756main ()
     14757{
     14758return $ac_func ();
     14759  ;
     14760  return 0;
     14761}
     14762_ACEOF
     14763rm -f conftest.$ac_objext conftest$ac_exeext
     14764if { (ac_try="$ac_link"
     14765case "(($ac_try" in
     14766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14767  *) ac_try_echo=$ac_try;;
     14768esac
     14769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14770$as_echo "$ac_try_echo") >&5
     14771  (eval "$ac_link") 2>conftest.er1
     14772  ac_status=$?
     14773  grep -v '^ *+' conftest.er1 >conftest.err
     14774  rm -f conftest.er1
     14775  cat conftest.err >&5
     14776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14777  (exit $ac_status); } && {
     14778         test -z "$ac_cxx_werror_flag" ||
     14779         test ! -s conftest.err
     14780       } && test -s conftest$ac_exeext && {
     14781         test "$cross_compiling" = yes ||
     14782         $as_test_x conftest$ac_exeext
     14783       }; then
     14784  eval "$as_ac_var=yes"
     14785else
     14786  $as_echo "$as_me: failed program was:" >&5
     14787sed 's/^/| /' conftest.$ac_ext >&5
     14788
     14789        eval "$as_ac_var=no"
     14790fi
     14791
     14792rm -rf conftest.dSYM
     14793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14794      conftest$ac_exeext conftest.$ac_ext
     14795fi
     14796ac_res=`eval 'as_val=${'$as_ac_var'}
     14797                 $as_echo "$as_val"'`
     14798               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14799$as_echo "$ac_res" >&6; }
     14800as_val=`eval 'as_val=${'$as_ac_var'}
     14801                 $as_echo "$as_val"'`
     14802   if test "x$as_val" = x""yes; then
    884414803  cat >>confdefs.h <<_ACEOF
    8845 #define HAVE_AVIO_OPEN 1
     14804#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    884614805_ACEOF
    884714806
     
    884914808done
    885014809
     14810
    885114811for ac_func in url_fopen
    8852 do :
    8853   ac_fn_cxx_check_func "$LINENO" "url_fopen" "ac_cv_func_url_fopen"
    8854 if test "x$ac_cv_func_url_fopen" = xyes; then :
     14812do
     14813as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14814{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14815$as_echo_n "checking for $ac_func... " >&6; }
     14816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14817  $as_echo_n "(cached) " >&6
     14818else
     14819  cat >conftest.$ac_ext <<_ACEOF
     14820/* confdefs.h.  */
     14821_ACEOF
     14822cat confdefs.h >>conftest.$ac_ext
     14823cat >>conftest.$ac_ext <<_ACEOF
     14824/* end confdefs.h.  */
     14825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14826   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14827#define $ac_func innocuous_$ac_func
     14828
     14829/* System header to define __stub macros and hopefully few prototypes,
     14830    which can conflict with char $ac_func (); below.
     14831    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14832    <limits.h> exists even on freestanding compilers.  */
     14833
     14834#ifdef __STDC__
     14835# include <limits.h>
     14836#else
     14837# include <assert.h>
     14838#endif
     14839
     14840#undef $ac_func
     14841
     14842/* Override any GCC internal prototype to avoid an error.
     14843   Use char because int might match the return type of a GCC
     14844   builtin and then its argument prototype would still apply.  */
     14845#ifdef __cplusplus
     14846extern "C"
     14847#endif
     14848char $ac_func ();
     14849/* The GNU C library defines this for functions which it implements
     14850    to always fail with ENOSYS.  Some functions are actually named
     14851    something starting with __ and the normal name is an alias.  */
     14852#if defined __stub_$ac_func || defined __stub___$ac_func
     14853choke me
     14854#endif
     14855
     14856int
     14857main ()
     14858{
     14859return $ac_func ();
     14860  ;
     14861  return 0;
     14862}
     14863_ACEOF
     14864rm -f conftest.$ac_objext conftest$ac_exeext
     14865if { (ac_try="$ac_link"
     14866case "(($ac_try" in
     14867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14868  *) ac_try_echo=$ac_try;;
     14869esac
     14870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14871$as_echo "$ac_try_echo") >&5
     14872  (eval "$ac_link") 2>conftest.er1
     14873  ac_status=$?
     14874  grep -v '^ *+' conftest.er1 >conftest.err
     14875  rm -f conftest.er1
     14876  cat conftest.err >&5
     14877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14878  (exit $ac_status); } && {
     14879         test -z "$ac_cxx_werror_flag" ||
     14880         test ! -s conftest.err
     14881       } && test -s conftest$ac_exeext && {
     14882         test "$cross_compiling" = yes ||
     14883         $as_test_x conftest$ac_exeext
     14884       }; then
     14885  eval "$as_ac_var=yes"
     14886else
     14887  $as_echo "$as_me: failed program was:" >&5
     14888sed 's/^/| /' conftest.$ac_ext >&5
     14889
     14890        eval "$as_ac_var=no"
     14891fi
     14892
     14893rm -rf conftest.dSYM
     14894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14895      conftest$ac_exeext conftest.$ac_ext
     14896fi
     14897ac_res=`eval 'as_val=${'$as_ac_var'}
     14898                 $as_echo "$as_val"'`
     14899               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14900$as_echo "$ac_res" >&6; }
     14901as_val=`eval 'as_val=${'$as_ac_var'}
     14902                 $as_echo "$as_val"'`
     14903   if test "x$as_val" = x""yes; then
    885514904  cat >>confdefs.h <<_ACEOF
    8856 #define HAVE_URL_FOPEN 1
     14905#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    885714906_ACEOF
    885814907
     
    886014909done
    886114910
     14911
    886214912for ac_func in avio_close
    8863 do :
    8864   ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close"
    8865 if test "x$ac_cv_func_avio_close" = xyes; then :
     14913do
     14914as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14915{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14916$as_echo_n "checking for $ac_func... " >&6; }
     14917if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14918  $as_echo_n "(cached) " >&6
     14919else
     14920  cat >conftest.$ac_ext <<_ACEOF
     14921/* confdefs.h.  */
     14922_ACEOF
     14923cat confdefs.h >>conftest.$ac_ext
     14924cat >>conftest.$ac_ext <<_ACEOF
     14925/* end confdefs.h.  */
     14926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14928#define $ac_func innocuous_$ac_func
     14929
     14930/* System header to define __stub macros and hopefully few prototypes,
     14931    which can conflict with char $ac_func (); below.
     14932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14933    <limits.h> exists even on freestanding compilers.  */
     14934
     14935#ifdef __STDC__
     14936# include <limits.h>
     14937#else
     14938# include <assert.h>
     14939#endif
     14940
     14941#undef $ac_func
     14942
     14943/* Override any GCC internal prototype to avoid an error.
     14944   Use char because int might match the return type of a GCC
     14945   builtin and then its argument prototype would still apply.  */
     14946#ifdef __cplusplus
     14947extern "C"
     14948#endif
     14949char $ac_func ();
     14950/* The GNU C library defines this for functions which it implements
     14951    to always fail with ENOSYS.  Some functions are actually named
     14952    something starting with __ and the normal name is an alias.  */
     14953#if defined __stub_$ac_func || defined __stub___$ac_func
     14954choke me
     14955#endif
     14956
     14957int
     14958main ()
     14959{
     14960return $ac_func ();
     14961  ;
     14962  return 0;
     14963}
     14964_ACEOF
     14965rm -f conftest.$ac_objext conftest$ac_exeext
     14966if { (ac_try="$ac_link"
     14967case "(($ac_try" in
     14968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14969  *) ac_try_echo=$ac_try;;
     14970esac
     14971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14972$as_echo "$ac_try_echo") >&5
     14973  (eval "$ac_link") 2>conftest.er1
     14974  ac_status=$?
     14975  grep -v '^ *+' conftest.er1 >conftest.err
     14976  rm -f conftest.er1
     14977  cat conftest.err >&5
     14978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14979  (exit $ac_status); } && {
     14980         test -z "$ac_cxx_werror_flag" ||
     14981         test ! -s conftest.err
     14982       } && test -s conftest$ac_exeext && {
     14983         test "$cross_compiling" = yes ||
     14984         $as_test_x conftest$ac_exeext
     14985       }; then
     14986  eval "$as_ac_var=yes"
     14987else
     14988  $as_echo "$as_me: failed program was:" >&5
     14989sed 's/^/| /' conftest.$ac_ext >&5
     14990
     14991        eval "$as_ac_var=no"
     14992fi
     14993
     14994rm -rf conftest.dSYM
     14995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14996      conftest$ac_exeext conftest.$ac_ext
     14997fi
     14998ac_res=`eval 'as_val=${'$as_ac_var'}
     14999                 $as_echo "$as_val"'`
     15000               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     15001$as_echo "$ac_res" >&6; }
     15002as_val=`eval 'as_val=${'$as_ac_var'}
     15003                 $as_echo "$as_val"'`
     15004   if test "x$as_val" = x""yes; then
    886615005  cat >>confdefs.h <<_ACEOF
    8867 #define HAVE_AVIO_CLOSE 1
     15006#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    886815007_ACEOF
    886915008
     
    887115010done
    887215011
     15012
    887315013for ac_func in url_fclose
    8874 do :
    8875   ac_fn_cxx_check_func "$LINENO" "url_fclose" "ac_cv_func_url_fclose"
    8876 if test "x$ac_cv_func_url_fclose" = xyes; then :
     15014do
     15015as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     15016{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     15017$as_echo_n "checking for $ac_func... " >&6; }
     15018if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     15019  $as_echo_n "(cached) " >&6
     15020else
     15021  cat >conftest.$ac_ext <<_ACEOF
     15022/* confdefs.h.  */
     15023_ACEOF
     15024cat confdefs.h >>conftest.$ac_ext
     15025cat >>conftest.$ac_ext <<_ACEOF
     15026/* end confdefs.h.  */
     15027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     15028   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15029#define $ac_func innocuous_$ac_func
     15030
     15031/* System header to define __stub macros and hopefully few prototypes,
     15032    which can conflict with char $ac_func (); below.
     15033    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15034    <limits.h> exists even on freestanding compilers.  */
     15035
     15036#ifdef __STDC__
     15037# include <limits.h>
     15038#else
     15039# include <assert.h>
     15040#endif
     15041
     15042#undef $ac_func
     15043
     15044/* Override any GCC internal prototype to avoid an error.
     15045   Use char because int might match the return type of a GCC
     15046   builtin and then its argument prototype would still apply.  */
     15047#ifdef __cplusplus
     15048extern "C"
     15049#endif
     15050char $ac_func ();
     15051/* The GNU C library defines this for functions which it implements
     15052    to always fail with ENOSYS.  Some functions are actually named
     15053    something starting with __ and the normal name is an alias.  */
     15054#if defined __stub_$ac_func || defined __stub___$ac_func
     15055choke me
     15056#endif
     15057
     15058int
     15059main ()
     15060{
     15061return $ac_func ();
     15062  ;
     15063  return 0;
     15064}
     15065_ACEOF
     15066rm -f conftest.$ac_objext conftest$ac_exeext
     15067if { (ac_try="$ac_link"
     15068case "(($ac_try" in
     15069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15070  *) ac_try_echo=$ac_try;;
     15071esac
     15072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15073$as_echo "$ac_try_echo") >&5
     15074  (eval "$ac_link") 2>conftest.er1
     15075  ac_status=$?
     15076  grep -v '^ *+' conftest.er1 >conftest.err
     15077  rm -f conftest.er1
     15078  cat conftest.err >&5
     15079  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15080  (exit $ac_status); } && {
     15081         test -z "$ac_cxx_werror_flag" ||
     15082         test ! -s conftest.err
     15083       } && test -s conftest$ac_exeext && {
     15084         test "$cross_compiling" = yes ||
     15085         $as_test_x conftest$ac_exeext
     15086       }; then
     15087  eval "$as_ac_var=yes"
     15088else
     15089  $as_echo "$as_me: failed program was:" >&5
     15090sed 's/^/| /' conftest.$ac_ext >&5
     15091
     15092        eval "$as_ac_var=no"
     15093fi
     15094
     15095rm -rf conftest.dSYM
     15096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15097      conftest$ac_exeext conftest.$ac_ext
     15098fi
     15099ac_res=`eval 'as_val=${'$as_ac_var'}
     15100                 $as_echo "$as_val"'`
     15101               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     15102$as_echo "$ac_res" >&6; }
     15103as_val=`eval 'as_val=${'$as_ac_var'}
     15104                 $as_echo "$as_val"'`
     15105   if test "x$as_val" = x""yes; then
    887715106  cat >>confdefs.h <<_ACEOF
    8878 #define HAVE_URL_FCLOSE 1
     15107#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    887915108_ACEOF
    888015109
     
    888215111done
    888315112
     15113
    888415114for ac_func in avformat_alloc_context
    8885 do :
    8886   ac_fn_cxx_check_func "$LINENO" "avformat_alloc_context" "ac_cv_func_avformat_alloc_context"
    8887 if test "x$ac_cv_func_avformat_alloc_context" = xyes; then :
     15115do
     15116as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     15117{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     15118$as_echo_n "checking for $ac_func... " >&6; }
     15119if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     15120  $as_echo_n "(cached) " >&6
     15121else
     15122  cat >conftest.$ac_ext <<_ACEOF
     15123/* confdefs.h.  */
     15124_ACEOF
     15125cat confdefs.h >>conftest.$ac_ext
     15126cat >>conftest.$ac_ext <<_ACEOF
     15127/* end confdefs.h.  */
     15128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     15129   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15130#define $ac_func innocuous_$ac_func
     15131
     15132/* System header to define __stub macros and hopefully few prototypes,
     15133    which can conflict with char $ac_func (); below.
     15134    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15135    <limits.h> exists even on freestanding compilers.  */
     15136
     15137#ifdef __STDC__
     15138# include <limits.h>
     15139#else
     15140# include <assert.h>
     15141#endif
     15142
     15143#undef $ac_func
     15144
     15145/* Override any GCC internal prototype to avoid an error.
     15146   Use char because int might match the return type of a GCC
     15147   builtin and then its argument prototype would still apply.  */
     15148#ifdef __cplusplus
     15149extern "C"
     15150#endif
     15151char $ac_func ();
     15152/* The GNU C library defines this for functions which it implements
     15153    to always fail with ENOSYS.  Some functions are actually named
     15154    something starting with __ and the normal name is an alias.  */
     15155#if defined __stub_$ac_func || defined __stub___$ac_func
     15156choke me
     15157#endif
     15158
     15159int
     15160main ()
     15161{
     15162return $ac_func ();
     15163  ;
     15164  return 0;
     15165}
     15166_ACEOF
     15167rm -f conftest.$ac_objext conftest$ac_exeext
     15168if { (ac_try="$ac_link"
     15169case "(($ac_try" in
     15170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15171  *) ac_try_echo=$ac_try;;
     15172esac
     15173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15174$as_echo "$ac_try_echo") >&5
     15175  (eval "$ac_link") 2>conftest.er1
     15176  ac_status=$?
     15177  grep -v '^ *+' conftest.er1 >conftest.err
     15178  rm -f conftest.er1
     15179  cat conftest.err >&5
     15180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15181  (exit $ac_status); } && {
     15182         test -z "$ac_cxx_werror_flag" ||
     15183         test ! -s conftest.err
     15184       } && test -s conftest$ac_exeext && {
     15185         test "$cross_compiling" = yes ||
     15186         $as_test_x conftest$ac_exeext
     15187       }; then
     15188  eval "$as_ac_var=yes"
     15189else
     15190  $as_echo "$as_me: failed program was:" >&5
     15191sed 's/^/| /' conftest.$ac_ext >&5
     15192
     15193        eval "$as_ac_var=no"
     15194fi
     15195
     15196rm -rf conftest.dSYM
     15197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15198      conftest$ac_exeext conftest.$ac_ext
     15199fi
     15200ac_res=`eval 'as_val=${'$as_ac_var'}
     15201                 $as_echo "$as_val"'`
     15202               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     15203$as_echo "$ac_res" >&6; }
     15204as_val=`eval 'as_val=${'$as_ac_var'}
     15205                 $as_echo "$as_val"'`
     15206   if test "x$as_val" = x""yes; then
    888815207  cat >>confdefs.h <<_ACEOF
    8889 #define HAVE_AVFORMAT_ALLOC_CONTEXT 1
     15208#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    889015209_ACEOF
    889115210
     
    889315212done
    889415213
     15214
    889515215for ac_func in av_alloc_format_context
    8896 do :
    8897   ac_fn_cxx_check_func "$LINENO" "av_alloc_format_context" "ac_cv_func_av_alloc_format_context"
    8898 if test "x$ac_cv_func_av_alloc_format_context" = xyes; then :
     15216do
     15217as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     15218{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     15219$as_echo_n "checking for $ac_func... " >&6; }
     15220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     15221  $as_echo_n "(cached) " >&6
     15222else
     15223  cat >conftest.$ac_ext <<_ACEOF
     15224/* confdefs.h.  */
     15225_ACEOF
     15226cat confdefs.h >>conftest.$ac_ext
     15227cat >>conftest.$ac_ext <<_ACEOF
     15228/* end confdefs.h.  */
     15229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     15230   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15231#define $ac_func innocuous_$ac_func
     15232
     15233/* System header to define __stub macros and hopefully few prototypes,
     15234    which can conflict with char $ac_func (); below.
     15235    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15236    <limits.h> exists even on freestanding compilers.  */
     15237
     15238#ifdef __STDC__
     15239# include <limits.h>
     15240#else
     15241# include <assert.h>
     15242#endif
     15243
     15244#undef $ac_func
     15245
     15246/* Override any GCC internal prototype to avoid an error.
     15247   Use char because int might match the return type of a GCC
     15248   builtin and then its argument prototype would still apply.  */
     15249#ifdef __cplusplus
     15250extern "C"
     15251#endif
     15252char $ac_func ();
     15253/* The GNU C library defines this for functions which it implements
     15254    to always fail with ENOSYS.  Some functions are actually named
     15255    something starting with __ and the normal name is an alias.  */
     15256#if defined __stub_$ac_func || defined __stub___$ac_func
     15257choke me
     15258#endif
     15259
     15260int
     15261main ()
     15262{
     15263return $ac_func ();
     15264  ;
     15265  return 0;
     15266}
     15267_ACEOF
     15268rm -f conftest.$ac_objext conftest$ac_exeext
     15269if { (ac_try="$ac_link"
     15270case "(($ac_try" in
     15271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15272  *) ac_try_echo=$ac_try;;
     15273esac
     15274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15275$as_echo "$ac_try_echo") >&5
     15276  (eval "$ac_link") 2>conftest.er1
     15277  ac_status=$?
     15278  grep -v '^ *+' conftest.er1 >conftest.err
     15279  rm -f conftest.er1
     15280  cat conftest.err >&5
     15281  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15282  (exit $ac_status); } && {
     15283         test -z "$ac_cxx_werror_flag" ||
     15284         test ! -s conftest.err
     15285       } && test -s conftest$ac_exeext && {
     15286         test "$cross_compiling" = yes ||
     15287         $as_test_x conftest$ac_exeext
     15288       }; then
     15289  eval "$as_ac_var=yes"
     15290else
     15291  $as_echo "$as_me: failed program was:" >&5
     15292sed 's/^/| /' conftest.$ac_ext >&5
     15293
     15294        eval "$as_ac_var=no"
     15295fi
     15296
     15297rm -rf conftest.dSYM
     15298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15299      conftest$ac_exeext conftest.$ac_ext
     15300fi
     15301ac_res=`eval 'as_val=${'$as_ac_var'}
     15302                 $as_echo "$as_val"'`
     15303               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     15304$as_echo "$ac_res" >&6; }
     15305as_val=`eval 'as_val=${'$as_ac_var'}
     15306                 $as_echo "$as_val"'`
     15307   if test "x$as_val" = x""yes; then
    889915308  cat >>confdefs.h <<_ACEOF
    8900 #define HAVE_AV_ALLOC_FORMAT_CONTEXT 1
     15309#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    890115310_ACEOF
    890215311
     
    890415313done
    890515314
     15315
    890615316for ac_func in av_set_parameters
    8907 do :
    8908   ac_fn_cxx_check_func "$LINENO" "av_set_parameters" "ac_cv_func_av_set_parameters"
    8909 if test "x$ac_cv_func_av_set_parameters" = xyes; then :
     15317do
     15318as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     15319{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     15320$as_echo_n "checking for $ac_func... " >&6; }
     15321if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     15322  $as_echo_n "(cached) " >&6
     15323else
     15324  cat >conftest.$ac_ext <<_ACEOF
     15325/* confdefs.h.  */
     15326_ACEOF
     15327cat confdefs.h >>conftest.$ac_ext
     15328cat >>conftest.$ac_ext <<_ACEOF
     15329/* end confdefs.h.  */
     15330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     15331   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15332#define $ac_func innocuous_$ac_func
     15333
     15334/* System header to define __stub macros and hopefully few prototypes,
     15335    which can conflict with char $ac_func (); below.
     15336    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15337    <limits.h> exists even on freestanding compilers.  */
     15338
     15339#ifdef __STDC__
     15340# include <limits.h>
     15341#else
     15342# include <assert.h>
     15343#endif
     15344
     15345#undef $ac_func
     15346
     15347/* Override any GCC internal prototype to avoid an error.
     15348   Use char because int might match the return type of a GCC
     15349   builtin and then its argument prototype would still apply.  */
     15350#ifdef __cplusplus
     15351extern "C"
     15352#endif
     15353char $ac_func ();
     15354/* The GNU C library defines this for functions which it implements
     15355    to always fail with ENOSYS.  Some functions are actually named
     15356    something starting with __ and the normal name is an alias.  */
     15357#if defined __stub_$ac_func || defined __stub___$ac_func
     15358choke me
     15359#endif
     15360
     15361int
     15362main ()
     15363{
     15364return $ac_func ();
     15365  ;
     15366  return 0;
     15367}
     15368_ACEOF
     15369rm -f conftest.$ac_objext conftest$ac_exeext
     15370if { (ac_try="$ac_link"
     15371case "(($ac_try" in
     15372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15373  *) ac_try_echo=$ac_try;;
     15374esac
     15375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15376$as_echo "$ac_try_echo") >&5
     15377  (eval "$ac_link") 2>conftest.er1
     15378  ac_status=$?
     15379  grep -v '^ *+' conftest.er1 >conftest.err
     15380  rm -f conftest.er1
     15381  cat conftest.err >&5
     15382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15383  (exit $ac_status); } && {
     15384         test -z "$ac_cxx_werror_flag" ||
     15385         test ! -s conftest.err
     15386       } && test -s conftest$ac_exeext && {
     15387         test "$cross_compiling" = yes ||
     15388         $as_test_x conftest$ac_exeext
     15389       }; then
     15390  eval "$as_ac_var=yes"
     15391else
     15392  $as_echo "$as_me: failed program was:" >&5
     15393sed 's/^/| /' conftest.$ac_ext >&5
     15394
     15395        eval "$as_ac_var=no"
     15396fi
     15397
     15398rm -rf conftest.dSYM
     15399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15400      conftest$ac_exeext conftest.$ac_ext
     15401fi
     15402ac_res=`eval 'as_val=${'$as_ac_var'}
     15403                 $as_echo "$as_val"'`
     15404               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     15405$as_echo "$ac_res" >&6; }
     15406as_val=`eval 'as_val=${'$as_ac_var'}
     15407                 $as_echo "$as_val"'`
     15408   if test "x$as_val" = x""yes; then
    891015409  cat >>confdefs.h <<_ACEOF
    8911 #define HAVE_AV_SET_PARAMETERS 1
     15410#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    891215411_ACEOF
    891315412
     
    891515414done
    891615415
     15416
    891715417for ac_func in avformat_write_header
    8918 do :
    8919   ac_fn_cxx_check_func "$LINENO" "avformat_write_header" "ac_cv_func_avformat_write_header"
    8920 if test "x$ac_cv_func_avformat_write_header" = xyes; then :
     15418do
     15419as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     15420{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     15421$as_echo_n "checking for $ac_func... " >&6; }
     15422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     15423  $as_echo_n "(cached) " >&6
     15424else
     15425  cat >conftest.$ac_ext <<_ACEOF
     15426/* confdefs.h.  */
     15427_ACEOF
     15428cat confdefs.h >>conftest.$ac_ext
     15429cat >>conftest.$ac_ext <<_ACEOF
     15430/* end confdefs.h.  */
     15431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     15432   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15433#define $ac_func innocuous_$ac_func
     15434
     15435/* System header to define __stub macros and hopefully few prototypes,
     15436    which can conflict with char $ac_func (); below.
     15437    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15438    <limits.h> exists even on freestanding compilers.  */
     15439
     15440#ifdef __STDC__
     15441# include <limits.h>
     15442#else
     15443# include <assert.h>
     15444#endif
     15445
     15446#undef $ac_func
     15447
     15448/* Override any GCC internal prototype to avoid an error.
     15449   Use char because int might match the return type of a GCC
     15450   builtin and then its argument prototype would still apply.  */
     15451#ifdef __cplusplus
     15452extern "C"
     15453#endif
     15454char $ac_func ();
     15455/* The GNU C library defines this for functions which it implements
     15456    to always fail with ENOSYS.  Some functions are actually named
     15457    something starting with __ and the normal name is an alias.  */
     15458#if defined __stub_$ac_func || defined __stub___$ac_func
     15459choke me
     15460#endif
     15461
     15462int
     15463main ()
     15464{
     15465return $ac_func ();
     15466  ;
     15467  return 0;
     15468}
     15469_ACEOF
     15470rm -f conftest.$ac_objext conftest$ac_exeext
     15471if { (ac_try="$ac_link"
     15472case "(($ac_try" in
     15473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15474  *) ac_try_echo=$ac_try;;
     15475esac
     15476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15477$as_echo "$ac_try_echo") >&5
     15478  (eval "$ac_link") 2>conftest.er1
     15479  ac_status=$?
     15480  grep -v '^ *+' conftest.er1 >conftest.err
     15481  rm -f conftest.er1
     15482  cat conftest.err >&5
     15483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15484  (exit $ac_status); } && {
     15485         test -z "$ac_cxx_werror_flag" ||
     15486         test ! -s conftest.err
     15487       } && test -s conftest$ac_exeext && {
     15488         test "$cross_compiling" = yes ||
     15489         $as_test_x conftest$ac_exeext
     15490       }; then
     15491  eval "$as_ac_var=yes"
     15492else
     15493  $as_echo "$as_me: failed program was:" >&5
     15494sed 's/^/| /' conftest.$ac_ext >&5
     15495
     15496        eval "$as_ac_var=no"
     15497fi
     15498
     15499rm -rf conftest.dSYM
     15500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15501      conftest$ac_exeext conftest.$ac_ext
     15502fi
     15503ac_res=`eval 'as_val=${'$as_ac_var'}
     15504                 $as_echo "$as_val"'`
     15505               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     15506$as_echo "$ac_res" >&6; }
     15507as_val=`eval 'as_val=${'$as_ac_var'}
     15508                 $as_echo "$as_val"'`
     15509   if test "x$as_val" = x""yes; then
    892115510  cat >>confdefs.h <<_ACEOF
    8922 #define HAVE_AVFORMAT_WRITE_HEADER 1
     15511#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    892315512_ACEOF
    892415513
     
    892615515done
    892715516
     15517
    892815518for ac_func in av_write_header
    8929 do :
    8930   ac_fn_cxx_check_func "$LINENO" "av_write_header" "ac_cv_func_av_write_header"
    8931 if test "x$ac_cv_func_av_write_header" = xyes; then :
     15519do
     15520as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     15521{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     15522$as_echo_n "checking for $ac_func... " >&6; }
     15523if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     15524  $as_echo_n "(cached) " >&6
     15525else
     15526  cat >conftest.$ac_ext <<_ACEOF
     15527/* confdefs.h.  */
     15528_ACEOF
     15529cat confdefs.h >>conftest.$ac_ext
     15530cat >>conftest.$ac_ext <<_ACEOF
     15531/* end confdefs.h.  */
     15532/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     15533   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15534#define $ac_func innocuous_$ac_func
     15535
     15536/* System header to define __stub macros and hopefully few prototypes,
     15537    which can conflict with char $ac_func (); below.
     15538    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15539    <limits.h> exists even on freestanding compilers.  */
     15540
     15541#ifdef __STDC__
     15542# include <limits.h>
     15543#else
     15544# include <assert.h>
     15545#endif
     15546
     15547#undef $ac_func
     15548
     15549/* Override any GCC internal prototype to avoid an error.
     15550   Use char because int might match the return type of a GCC
     15551   builtin and then its argument prototype would still apply.  */
     15552#ifdef __cplusplus
     15553extern "C"
     15554#endif
     15555char $ac_func ();
     15556/* The GNU C library defines this for functions which it implements
     15557    to always fail with ENOSYS.  Some functions are actually named
     15558    something starting with __ and the normal name is an alias.  */
     15559#if defined __stub_$ac_func || defined __stub___$ac_func
     15560choke me
     15561#endif
     15562
     15563int
     15564main ()
     15565{
     15566return $ac_func ();
     15567  ;
     15568  return 0;
     15569}
     15570_ACEOF
     15571rm -f conftest.$ac_objext conftest$ac_exeext
     15572if { (ac_try="$ac_link"
     15573case "(($ac_try" in
     15574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15575  *) ac_try_echo=$ac_try;;
     15576esac
     15577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15578$as_echo "$ac_try_echo") >&5
     15579  (eval "$ac_link") 2>conftest.er1
     15580  ac_status=$?
     15581  grep -v '^ *+' conftest.er1 >conftest.err
     15582  rm -f conftest.er1
     15583  cat conftest.err >&5
     15584  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15585  (exit $ac_status); } && {
     15586         test -z "$ac_cxx_werror_flag" ||
     15587         test ! -s conftest.err
     15588       } && test -s conftest$ac_exeext && {
     15589         test "$cross_compiling" = yes ||
     15590         $as_test_x conftest$ac_exeext
     15591       }; then
     15592  eval "$as_ac_var=yes"
     15593else
     15594  $as_echo "$as_me: failed program was:" >&5
     15595sed 's/^/| /' conftest.$ac_ext >&5
     15596
     15597        eval "$as_ac_var=no"
     15598fi
     15599
     15600rm -rf conftest.dSYM
     15601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15602      conftest$ac_exeext conftest.$ac_ext
     15603fi
     15604ac_res=`eval 'as_val=${'$as_ac_var'}
     15605                 $as_echo "$as_val"'`
     15606               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     15607$as_echo "$ac_res" >&6; }
     15608as_val=`eval 'as_val=${'$as_ac_var'}
     15609                 $as_echo "$as_val"'`
     15610   if test "x$as_val" = x""yes; then
    893215611  cat >>confdefs.h <<_ACEOF
    8933 #define HAVE_AV_WRITE_HEADER 1
     15612#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    893415613_ACEOF
    893515614
     
    893715616done
    893815617
    8939 ac_fn_cxx_check_func "$LINENO" "av_write_trailer" "ac_cv_func_av_write_trailer"
    8940 if test "x$ac_cv_func_av_write_trailer" = xyes; then :
    8941 
    8942 else
    8943   as_fn_error $? "oops! no av_write_trailer?!?" "$LINENO" 5
    8944 fi
    8945 
    8946 ac_fn_cxx_check_func "$LINENO" "av_freep" "ac_cv_func_av_freep"
    8947 if test "x$ac_cv_func_av_freep" = xyes; then :
    8948 
    8949 else
    8950   as_fn_error $? "oops! no av_freep ?!?" "$LINENO" 5
    8951 fi
    8952 
    8953 ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free"
    8954 if test "x$ac_cv_func_av_free" = xyes; then :
    8955 
    8956 else
    8957   as_fn_error $? "oops! no av_free ?!?" "$LINENO" 5
    8958 fi
    8959 
    8960 ac_fn_cxx_check_func "$LINENO" "av_new_stream" "ac_cv_func_av_new_stream"
    8961 if test "x$ac_cv_func_av_new_stream" = xyes; then :
    8962 
    8963 else
    8964   as_fn_error $? "oops! av_new_stream ?!?" "$LINENO" 5
    8965 fi
    8966 
    8967 ac_fn_cxx_check_func "$LINENO" "av_malloc" "ac_cv_func_av_malloc"
    8968 if test "x$ac_cv_func_av_malloc" = xyes; then :
    8969 
    8970 else
    8971   as_fn_error $? "oops! no av_malloc ?!?" "$LINENO" 5
    8972 fi
    8973 
    8974 ac_fn_cxx_check_func "$LINENO" "av_init_packet" "ac_cv_func_av_init_packet"
    8975 if test "x$ac_cv_func_av_init_packet" = xyes; then :
    8976 
    8977 else
    8978   as_fn_error $? "oops! no av_init_packet ?!?" "$LINENO" 5
    8979 fi
    8980 
    8981 ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q"
    8982 if test "x$ac_cv_func_av_rescale_q" = xyes; then :
    8983 
    8984 else
    8985   as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 5
    8986 fi
    8987 
    8988 ac_fn_cxx_check_func "$LINENO" "av_write_frame" "ac_cv_func_av_write_frame"
    8989 if test "x$ac_cv_func_av_write_frame" = xyes; then :
    8990 
    8991 else
    8992   as_fn_error $? "oops! av_write_frame ?!?" "$LINENO" 5
    8993 fi
     15618{ $as_echo "$as_me:$LINENO: checking for av_write_trailer" >&5
     15619$as_echo_n "checking for av_write_trailer... " >&6; }
     15620if test "${ac_cv_func_av_write_trailer+set}" = set; then
     15621  $as_echo_n "(cached) " >&6
     15622else
     15623  cat >conftest.$ac_ext <<_ACEOF
     15624/* confdefs.h.  */
     15625_ACEOF
     15626cat confdefs.h >>conftest.$ac_ext
     15627cat >>conftest.$ac_ext <<_ACEOF
     15628/* end confdefs.h.  */
     15629/* Define av_write_trailer to an innocuous variant, in case <limits.h> declares av_write_trailer.
     15630   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15631#define av_write_trailer innocuous_av_write_trailer
     15632
     15633/* System header to define __stub macros and hopefully few prototypes,
     15634    which can conflict with char av_write_trailer (); below.
     15635    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15636    <limits.h> exists even on freestanding compilers.  */
     15637
     15638#ifdef __STDC__
     15639# include <limits.h>
     15640#else
     15641# include <assert.h>
     15642#endif
     15643
     15644#undef av_write_trailer
     15645
     15646/* Override any GCC internal prototype to avoid an error.
     15647   Use char because int might match the return type of a GCC
     15648   builtin and then its argument prototype would still apply.  */
     15649#ifdef __cplusplus
     15650extern "C"
     15651#endif
     15652char av_write_trailer ();
     15653/* The GNU C library defines this for functions which it implements
     15654    to always fail with ENOSYS.  Some functions are actually named
     15655    something starting with __ and the normal name is an alias.  */
     15656#if defined __stub_av_write_trailer || defined __stub___av_write_trailer
     15657choke me
     15658#endif
     15659
     15660int
     15661main ()
     15662{
     15663return av_write_trailer ();
     15664  ;
     15665  return 0;
     15666}
     15667_ACEOF
     15668rm -f conftest.$ac_objext conftest$ac_exeext
     15669if { (ac_try="$ac_link"
     15670case "(($ac_try" in
     15671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15672  *) ac_try_echo=$ac_try;;
     15673esac
     15674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15675$as_echo "$ac_try_echo") >&5
     15676  (eval "$ac_link") 2>conftest.er1
     15677  ac_status=$?
     15678  grep -v '^ *+' conftest.er1 >conftest.err
     15679  rm -f conftest.er1
     15680  cat conftest.err >&5
     15681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15682  (exit $ac_status); } && {
     15683         test -z "$ac_cxx_werror_flag" ||
     15684         test ! -s conftest.err
     15685       } && test -s conftest$ac_exeext && {
     15686         test "$cross_compiling" = yes ||
     15687         $as_test_x conftest$ac_exeext
     15688       }; then
     15689  ac_cv_func_av_write_trailer=yes
     15690else
     15691  $as_echo "$as_me: failed program was:" >&5
     15692sed 's/^/| /' conftest.$ac_ext >&5
     15693
     15694        ac_cv_func_av_write_trailer=no
     15695fi
     15696
     15697rm -rf conftest.dSYM
     15698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15699      conftest$ac_exeext conftest.$ac_ext
     15700fi
     15701{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_trailer" >&5
     15702$as_echo "$ac_cv_func_av_write_trailer" >&6; }
     15703if test "x$ac_cv_func_av_write_trailer" = x""yes; then
     15704  :
     15705else
     15706  { { $as_echo "$as_me:$LINENO: error: oops! no av_write_trailer?!?" >&5
     15707$as_echo "$as_me: error: oops! no av_write_trailer?!?" >&2;}
     15708   { (exit 1); exit 1; }; }
     15709fi
     15710
     15711{ $as_echo "$as_me:$LINENO: checking for av_freep" >&5
     15712$as_echo_n "checking for av_freep... " >&6; }
     15713if test "${ac_cv_func_av_freep+set}" = set; then
     15714  $as_echo_n "(cached) " >&6
     15715else
     15716  cat >conftest.$ac_ext <<_ACEOF
     15717/* confdefs.h.  */
     15718_ACEOF
     15719cat confdefs.h >>conftest.$ac_ext
     15720cat >>conftest.$ac_ext <<_ACEOF
     15721/* end confdefs.h.  */
     15722/* Define av_freep to an innocuous variant, in case <limits.h> declares av_freep.
     15723   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15724#define av_freep innocuous_av_freep
     15725
     15726/* System header to define __stub macros and hopefully few prototypes,
     15727    which can conflict with char av_freep (); below.
     15728    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15729    <limits.h> exists even on freestanding compilers.  */
     15730
     15731#ifdef __STDC__
     15732# include <limits.h>
     15733#else
     15734# include <assert.h>
     15735#endif
     15736
     15737#undef av_freep
     15738
     15739/* Override any GCC internal prototype to avoid an error.
     15740   Use char because int might match the return type of a GCC
     15741   builtin and then its argument prototype would still apply.  */
     15742#ifdef __cplusplus
     15743extern "C"
     15744#endif
     15745char av_freep ();
     15746/* The GNU C library defines this for functions which it implements
     15747    to always fail with ENOSYS.  Some functions are actually named
     15748    something starting with __ and the normal name is an alias.  */
     15749#if defined __stub_av_freep || defined __stub___av_freep
     15750choke me
     15751#endif
     15752
     15753int
     15754main ()
     15755{
     15756return av_freep ();
     15757  ;
     15758  return 0;
     15759}
     15760_ACEOF
     15761rm -f conftest.$ac_objext conftest$ac_exeext
     15762if { (ac_try="$ac_link"
     15763case "(($ac_try" in
     15764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15765  *) ac_try_echo=$ac_try;;
     15766esac
     15767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15768$as_echo "$ac_try_echo") >&5
     15769  (eval "$ac_link") 2>conftest.er1
     15770  ac_status=$?
     15771  grep -v '^ *+' conftest.er1 >conftest.err
     15772  rm -f conftest.er1
     15773  cat conftest.err >&5
     15774  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15775  (exit $ac_status); } && {
     15776         test -z "$ac_cxx_werror_flag" ||
     15777         test ! -s conftest.err
     15778       } && test -s conftest$ac_exeext && {
     15779         test "$cross_compiling" = yes ||
     15780         $as_test_x conftest$ac_exeext
     15781       }; then
     15782  ac_cv_func_av_freep=yes
     15783else
     15784  $as_echo "$as_me: failed program was:" >&5
     15785sed 's/^/| /' conftest.$ac_ext >&5
     15786
     15787        ac_cv_func_av_freep=no
     15788fi
     15789
     15790rm -rf conftest.dSYM
     15791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15792      conftest$ac_exeext conftest.$ac_ext
     15793fi
     15794{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_freep" >&5
     15795$as_echo "$ac_cv_func_av_freep" >&6; }
     15796if test "x$ac_cv_func_av_freep" = x""yes; then
     15797  :
     15798else
     15799  { { $as_echo "$as_me:$LINENO: error: oops! no av_freep ?!?" >&5
     15800$as_echo "$as_me: error: oops! no av_freep ?!?" >&2;}
     15801   { (exit 1); exit 1; }; }
     15802fi
     15803
     15804{ $as_echo "$as_me:$LINENO: checking for av_free" >&5
     15805$as_echo_n "checking for av_free... " >&6; }
     15806if test "${ac_cv_func_av_free+set}" = set; then
     15807  $as_echo_n "(cached) " >&6
     15808else
     15809  cat >conftest.$ac_ext <<_ACEOF
     15810/* confdefs.h.  */
     15811_ACEOF
     15812cat confdefs.h >>conftest.$ac_ext
     15813cat >>conftest.$ac_ext <<_ACEOF
     15814/* end confdefs.h.  */
     15815/* Define av_free to an innocuous variant, in case <limits.h> declares av_free.
     15816   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15817#define av_free innocuous_av_free
     15818
     15819/* System header to define __stub macros and hopefully few prototypes,
     15820    which can conflict with char av_free (); below.
     15821    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15822    <limits.h> exists even on freestanding compilers.  */
     15823
     15824#ifdef __STDC__
     15825# include <limits.h>
     15826#else
     15827# include <assert.h>
     15828#endif
     15829
     15830#undef av_free
     15831
     15832/* Override any GCC internal prototype to avoid an error.
     15833   Use char because int might match the return type of a GCC
     15834   builtin and then its argument prototype would still apply.  */
     15835#ifdef __cplusplus
     15836extern "C"
     15837#endif
     15838char av_free ();
     15839/* The GNU C library defines this for functions which it implements
     15840    to always fail with ENOSYS.  Some functions are actually named
     15841    something starting with __ and the normal name is an alias.  */
     15842#if defined __stub_av_free || defined __stub___av_free
     15843choke me
     15844#endif
     15845
     15846int
     15847main ()
     15848{
     15849return av_free ();
     15850  ;
     15851  return 0;
     15852}
     15853_ACEOF
     15854rm -f conftest.$ac_objext conftest$ac_exeext
     15855if { (ac_try="$ac_link"
     15856case "(($ac_try" in
     15857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15858  *) ac_try_echo=$ac_try;;
     15859esac
     15860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15861$as_echo "$ac_try_echo") >&5
     15862  (eval "$ac_link") 2>conftest.er1
     15863  ac_status=$?
     15864  grep -v '^ *+' conftest.er1 >conftest.err
     15865  rm -f conftest.er1
     15866  cat conftest.err >&5
     15867  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15868  (exit $ac_status); } && {
     15869         test -z "$ac_cxx_werror_flag" ||
     15870         test ! -s conftest.err
     15871       } && test -s conftest$ac_exeext && {
     15872         test "$cross_compiling" = yes ||
     15873         $as_test_x conftest$ac_exeext
     15874       }; then
     15875  ac_cv_func_av_free=yes
     15876else
     15877  $as_echo "$as_me: failed program was:" >&5
     15878sed 's/^/| /' conftest.$ac_ext >&5
     15879
     15880        ac_cv_func_av_free=no
     15881fi
     15882
     15883rm -rf conftest.dSYM
     15884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15885      conftest$ac_exeext conftest.$ac_ext
     15886fi
     15887{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_free" >&5
     15888$as_echo "$ac_cv_func_av_free" >&6; }
     15889if test "x$ac_cv_func_av_free" = x""yes; then
     15890  :
     15891else
     15892  { { $as_echo "$as_me:$LINENO: error: oops! no av_free ?!?" >&5
     15893$as_echo "$as_me: error: oops! no av_free ?!?" >&2;}
     15894   { (exit 1); exit 1; }; }
     15895fi
     15896
     15897{ $as_echo "$as_me:$LINENO: checking for av_new_stream" >&5
     15898$as_echo_n "checking for av_new_stream... " >&6; }
     15899if test "${ac_cv_func_av_new_stream+set}" = set; then
     15900  $as_echo_n "(cached) " >&6
     15901else
     15902  cat >conftest.$ac_ext <<_ACEOF
     15903/* confdefs.h.  */
     15904_ACEOF
     15905cat confdefs.h >>conftest.$ac_ext
     15906cat >>conftest.$ac_ext <<_ACEOF
     15907/* end confdefs.h.  */
     15908/* Define av_new_stream to an innocuous variant, in case <limits.h> declares av_new_stream.
     15909   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15910#define av_new_stream innocuous_av_new_stream
     15911
     15912/* System header to define __stub macros and hopefully few prototypes,
     15913    which can conflict with char av_new_stream (); below.
     15914    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15915    <limits.h> exists even on freestanding compilers.  */
     15916
     15917#ifdef __STDC__
     15918# include <limits.h>
     15919#else
     15920# include <assert.h>
     15921#endif
     15922
     15923#undef av_new_stream
     15924
     15925/* Override any GCC internal prototype to avoid an error.
     15926   Use char because int might match the return type of a GCC
     15927   builtin and then its argument prototype would still apply.  */
     15928#ifdef __cplusplus
     15929extern "C"
     15930#endif
     15931char av_new_stream ();
     15932/* The GNU C library defines this for functions which it implements
     15933    to always fail with ENOSYS.  Some functions are actually named
     15934    something starting with __ and the normal name is an alias.  */
     15935#if defined __stub_av_new_stream || defined __stub___av_new_stream
     15936choke me
     15937#endif
     15938
     15939int
     15940main ()
     15941{
     15942return av_new_stream ();
     15943  ;
     15944  return 0;
     15945}
     15946_ACEOF
     15947rm -f conftest.$ac_objext conftest$ac_exeext
     15948if { (ac_try="$ac_link"
     15949case "(($ac_try" in
     15950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15951  *) ac_try_echo=$ac_try;;
     15952esac
     15953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15954$as_echo "$ac_try_echo") >&5
     15955  (eval "$ac_link") 2>conftest.er1
     15956  ac_status=$?
     15957  grep -v '^ *+' conftest.er1 >conftest.err
     15958  rm -f conftest.er1
     15959  cat conftest.err >&5
     15960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15961  (exit $ac_status); } && {
     15962         test -z "$ac_cxx_werror_flag" ||
     15963         test ! -s conftest.err
     15964       } && test -s conftest$ac_exeext && {
     15965         test "$cross_compiling" = yes ||
     15966         $as_test_x conftest$ac_exeext
     15967       }; then
     15968  ac_cv_func_av_new_stream=yes
     15969else
     15970  $as_echo "$as_me: failed program was:" >&5
     15971sed 's/^/| /' conftest.$ac_ext >&5
     15972
     15973        ac_cv_func_av_new_stream=no
     15974fi
     15975
     15976rm -rf conftest.dSYM
     15977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15978      conftest$ac_exeext conftest.$ac_ext
     15979fi
     15980{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_new_stream" >&5
     15981$as_echo "$ac_cv_func_av_new_stream" >&6; }
     15982if test "x$ac_cv_func_av_new_stream" = x""yes; then
     15983  :
     15984else
     15985  { { $as_echo "$as_me:$LINENO: error: oops! av_new_stream ?!?" >&5
     15986$as_echo "$as_me: error: oops! av_new_stream ?!?" >&2;}
     15987   { (exit 1); exit 1; }; }
     15988fi
     15989
     15990{ $as_echo "$as_me:$LINENO: checking for av_malloc" >&5
     15991$as_echo_n "checking for av_malloc... " >&6; }
     15992if test "${ac_cv_func_av_malloc+set}" = set; then
     15993  $as_echo_n "(cached) " >&6
     15994else
     15995  cat >conftest.$ac_ext <<_ACEOF
     15996/* confdefs.h.  */
     15997_ACEOF
     15998cat confdefs.h >>conftest.$ac_ext
     15999cat >>conftest.$ac_ext <<_ACEOF
     16000/* end confdefs.h.  */
     16001/* Define av_malloc to an innocuous variant, in case <limits.h> declares av_malloc.
     16002   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     16003#define av_malloc innocuous_av_malloc
     16004
     16005/* System header to define __stub macros and hopefully few prototypes,
     16006    which can conflict with char av_malloc (); below.
     16007    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     16008    <limits.h> exists even on freestanding compilers.  */
     16009
     16010#ifdef __STDC__
     16011# include <limits.h>
     16012#else
     16013# include <assert.h>
     16014#endif
     16015
     16016#undef av_malloc
     16017
     16018/* Override any GCC internal prototype to avoid an error.
     16019   Use char because int might match the return type of a GCC
     16020   builtin and then its argument prototype would still apply.  */
     16021#ifdef __cplusplus
     16022extern "C"
     16023#endif
     16024char av_malloc ();
     16025/* The GNU C library defines this for functions which it implements
     16026    to always fail with ENOSYS.  Some functions are actually named
     16027    something starting with __ and the normal name is an alias.  */
     16028#if defined __stub_av_malloc || defined __stub___av_malloc
     16029choke me
     16030#endif
     16031
     16032int
     16033main ()
     16034{
     16035return av_malloc ();
     16036  ;
     16037  return 0;
     16038}
     16039_ACEOF
     16040rm -f conftest.$ac_objext conftest$ac_exeext
     16041if { (ac_try="$ac_link"
     16042case "(($ac_try" in
     16043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16044  *) ac_try_echo=$ac_try;;
     16045esac
     16046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16047$as_echo "$ac_try_echo") >&5
     16048  (eval "$ac_link") 2>conftest.er1
     16049  ac_status=$?
     16050  grep -v '^ *+' conftest.er1 >conftest.err
     16051  rm -f conftest.er1
     16052  cat conftest.err >&5
     16053  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16054  (exit $ac_status); } && {
     16055         test -z "$ac_cxx_werror_flag" ||
     16056         test ! -s conftest.err
     16057       } && test -s conftest$ac_exeext && {
     16058         test "$cross_compiling" = yes ||
     16059         $as_test_x conftest$ac_exeext
     16060       }; then
     16061  ac_cv_func_av_malloc=yes
     16062else
     16063  $as_echo "$as_me: failed program was:" >&5
     16064sed 's/^/| /' conftest.$ac_ext >&5
     16065
     16066        ac_cv_func_av_malloc=no
     16067fi
     16068
     16069rm -rf conftest.dSYM
     16070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16071      conftest$ac_exeext conftest.$ac_ext
     16072fi
     16073{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_malloc" >&5
     16074$as_echo "$ac_cv_func_av_malloc" >&6; }
     16075if test "x$ac_cv_func_av_malloc" = x""yes; then
     16076  :
     16077else
     16078  { { $as_echo "$as_me:$LINENO: error: oops! no av_malloc ?!?" >&5
     16079$as_echo "$as_me: error: oops! no av_malloc ?!?" >&2;}
     16080   { (exit 1); exit 1; }; }
     16081fi
     16082
     16083{ $as_echo "$as_me:$LINENO: checking for av_init_packet" >&5
     16084$as_echo_n "checking for av_init_packet... " >&6; }
     16085if test "${ac_cv_func_av_init_packet+set}" = set; then
     16086  $as_echo_n "(cached) " >&6
     16087else
     16088  cat >conftest.$ac_ext <<_ACEOF
     16089/* confdefs.h.  */
     16090_ACEOF
     16091cat confdefs.h >>conftest.$ac_ext
     16092cat >>conftest.$ac_ext <<_ACEOF
     16093/* end confdefs.h.  */
     16094/* Define av_init_packet to an innocuous variant, in case <limits.h> declares av_init_packet.
     16095   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     16096#define av_init_packet innocuous_av_init_packet
     16097
     16098/* System header to define __stub macros and hopefully few prototypes,
     16099    which can conflict with char av_init_packet (); below.
     16100    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     16101    <limits.h> exists even on freestanding compilers.  */
     16102
     16103#ifdef __STDC__
     16104# include <limits.h>
     16105#else
     16106# include <assert.h>
     16107#endif
     16108
     16109#undef av_init_packet
     16110
     16111/* Override any GCC internal prototype to avoid an error.
     16112   Use char because int might match the return type of a GCC
     16113   builtin and then its argument prototype would still apply.  */
     16114#ifdef __cplusplus
     16115extern "C"
     16116#endif
     16117char av_init_packet ();
     16118/* The GNU C library defines this for functions which it implements
     16119    to always fail with ENOSYS.  Some functions are actually named
     16120    something starting with __ and the normal name is an alias.  */
     16121#if defined __stub_av_init_packet || defined __stub___av_init_packet
     16122choke me
     16123#endif
     16124
     16125int
     16126main ()
     16127{
     16128return av_init_packet ();
     16129  ;
     16130  return 0;
     16131}
     16132_ACEOF
     16133rm -f conftest.$ac_objext conftest$ac_exeext
     16134if { (ac_try="$ac_link"
     16135case "(($ac_try" in
     16136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16137  *) ac_try_echo=$ac_try;;
     16138esac
     16139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16140$as_echo "$ac_try_echo") >&5
     16141  (eval "$ac_link") 2>conftest.er1
     16142  ac_status=$?
     16143  grep -v '^ *+' conftest.er1 >conftest.err
     16144  rm -f conftest.er1
     16145  cat conftest.err >&5
     16146  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16147  (exit $ac_status); } && {
     16148         test -z "$ac_cxx_werror_flag" ||
     16149         test ! -s conftest.err
     16150       } && test -s conftest$ac_exeext && {
     16151         test "$cross_compiling" = yes ||
     16152         $as_test_x conftest$ac_exeext
     16153       }; then
     16154  ac_cv_func_av_init_packet=yes
     16155else
     16156  $as_echo "$as_me: failed program was:" >&5
     16157sed 's/^/| /' conftest.$ac_ext >&5
     16158
     16159        ac_cv_func_av_init_packet=no
     16160fi
     16161
     16162rm -rf conftest.dSYM
     16163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16164      conftest$ac_exeext conftest.$ac_ext
     16165fi
     16166{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_init_packet" >&5
     16167$as_echo "$ac_cv_func_av_init_packet" >&6; }
     16168if test "x$ac_cv_func_av_init_packet" = x""yes; then
     16169  :
     16170else
     16171  { { $as_echo "$as_me:$LINENO: error: oops! no av_init_packet ?!?" >&5
     16172$as_echo "$as_me: error: oops! no av_init_packet ?!?" >&2;}
     16173   { (exit 1); exit 1; }; }
     16174fi
     16175
     16176{ $as_echo "$as_me:$LINENO: checking for av_rescale_q" >&5
     16177$as_echo_n "checking for av_rescale_q... " >&6; }
     16178if test "${ac_cv_func_av_rescale_q+set}" = set; then
     16179  $as_echo_n "(cached) " >&6
     16180else
     16181  cat >conftest.$ac_ext <<_ACEOF
     16182/* confdefs.h.  */
     16183_ACEOF
     16184cat confdefs.h >>conftest.$ac_ext
     16185cat >>conftest.$ac_ext <<_ACEOF
     16186/* end confdefs.h.  */
     16187/* Define av_rescale_q to an innocuous variant, in case <limits.h> declares av_rescale_q.
     16188   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     16189#define av_rescale_q innocuous_av_rescale_q
     16190
     16191/* System header to define __stub macros and hopefully few prototypes,
     16192    which can conflict with char av_rescale_q (); below.
     16193    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     16194    <limits.h> exists even on freestanding compilers.  */
     16195
     16196#ifdef __STDC__
     16197# include <limits.h>
     16198#else
     16199# include <assert.h>
     16200#endif
     16201
     16202#undef av_rescale_q
     16203
     16204/* Override any GCC internal prototype to avoid an error.
     16205   Use char because int might match the return type of a GCC
     16206   builtin and then its argument prototype would still apply.  */
     16207#ifdef __cplusplus
     16208extern "C"
     16209#endif
     16210char av_rescale_q ();
     16211/* The GNU C library defines this for functions which it implements
     16212    to always fail with ENOSYS.  Some functions are actually named
     16213    something starting with __ and the normal name is an alias.  */
     16214#if defined __stub_av_rescale_q || defined __stub___av_rescale_q
     16215choke me
     16216#endif
     16217
     16218int
     16219main ()
     16220{
     16221return av_rescale_q ();
     16222  ;
     16223  return 0;
     16224}
     16225_ACEOF
     16226rm -f conftest.$ac_objext conftest$ac_exeext
     16227if { (ac_try="$ac_link"
     16228case "(($ac_try" in
     16229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16230  *) ac_try_echo=$ac_try;;
     16231esac
     16232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16233$as_echo "$ac_try_echo") >&5
     16234  (eval "$ac_link") 2>conftest.er1
     16235  ac_status=$?
     16236  grep -v '^ *+' conftest.er1 >conftest.err
     16237  rm -f conftest.er1
     16238  cat conftest.err >&5
     16239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16240  (exit $ac_status); } && {
     16241         test -z "$ac_cxx_werror_flag" ||
     16242         test ! -s conftest.err
     16243       } && test -s conftest$ac_exeext && {
     16244         test "$cross_compiling" = yes ||
     16245         $as_test_x conftest$ac_exeext
     16246       }; then
     16247  ac_cv_func_av_rescale_q=yes
     16248else
     16249  $as_echo "$as_me: failed program was:" >&5
     16250sed 's/^/| /' conftest.$ac_ext >&5
     16251
     16252        ac_cv_func_av_rescale_q=no
     16253fi
     16254
     16255rm -rf conftest.dSYM
     16256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16257      conftest$ac_exeext conftest.$ac_ext
     16258fi
     16259{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_rescale_q" >&5
     16260$as_echo "$ac_cv_func_av_rescale_q" >&6; }
     16261if test "x$ac_cv_func_av_rescale_q" = x""yes; then
     16262  :
     16263else
     16264  { { $as_echo "$as_me:$LINENO: error: oops! no av_rescale_q ?!?" >&5
     16265$as_echo "$as_me: error: oops! no av_rescale_q ?!?" >&2;}
     16266   { (exit 1); exit 1; }; }
     16267fi
     16268
     16269{ $as_echo "$as_me:$LINENO: checking for av_write_frame" >&5
     16270$as_echo_n "checking for av_write_frame... " >&6; }
     16271if test "${ac_cv_func_av_write_frame+set}" = set; then
     16272  $as_echo_n "(cached) " >&6
     16273else
     16274  cat >conftest.$ac_ext <<_ACEOF
     16275/* confdefs.h.  */
     16276_ACEOF
     16277cat confdefs.h >>conftest.$ac_ext
     16278cat >>conftest.$ac_ext <<_ACEOF
     16279/* end confdefs.h.  */
     16280/* Define av_write_frame to an innocuous variant, in case <limits.h> declares av_write_frame.
     16281   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     16282#define av_write_frame innocuous_av_write_frame
     16283
     16284/* System header to define __stub macros and hopefully few prototypes,
     16285    which can conflict with char av_write_frame (); below.
     16286    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     16287    <limits.h> exists even on freestanding compilers.  */
     16288
     16289#ifdef __STDC__
     16290# include <limits.h>
     16291#else
     16292# include <assert.h>
     16293#endif
     16294
     16295#undef av_write_frame
     16296
     16297/* Override any GCC internal prototype to avoid an error.
     16298   Use char because int might match the return type of a GCC
     16299   builtin and then its argument prototype would still apply.  */
     16300#ifdef __cplusplus
     16301extern "C"
     16302#endif
     16303char av_write_frame ();
     16304/* The GNU C library defines this for functions which it implements
     16305    to always fail with ENOSYS.  Some functions are actually named
     16306    something starting with __ and the normal name is an alias.  */
     16307#if defined __stub_av_write_frame || defined __stub___av_write_frame
     16308choke me
     16309#endif
     16310
     16311int
     16312main ()
     16313{
     16314return av_write_frame ();
     16315  ;
     16316  return 0;
     16317}
     16318_ACEOF
     16319rm -f conftest.$ac_objext conftest$ac_exeext
     16320if { (ac_try="$ac_link"
     16321case "(($ac_try" in
     16322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16323  *) ac_try_echo=$ac_try;;
     16324esac
     16325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16326$as_echo "$ac_try_echo") >&5
     16327  (eval "$ac_link") 2>conftest.er1
     16328  ac_status=$?
     16329  grep -v '^ *+' conftest.er1 >conftest.err
     16330  rm -f conftest.er1
     16331  cat conftest.err >&5
     16332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16333  (exit $ac_status); } && {
     16334         test -z "$ac_cxx_werror_flag" ||
     16335         test ! -s conftest.err
     16336       } && test -s conftest$ac_exeext && {
     16337         test "$cross_compiling" = yes ||
     16338         $as_test_x conftest$ac_exeext
     16339       }; then
     16340  ac_cv_func_av_write_frame=yes
     16341else
     16342  $as_echo "$as_me: failed program was:" >&5
     16343sed 's/^/| /' conftest.$ac_ext >&5
     16344
     16345        ac_cv_func_av_write_frame=no
     16346fi
     16347
     16348rm -rf conftest.dSYM
     16349rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16350      conftest$ac_exeext conftest.$ac_ext
     16351fi
     16352{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_frame" >&5
     16353$as_echo "$ac_cv_func_av_write_frame" >&6; }
     16354if test "x$ac_cv_func_av_write_frame" = x""yes; then
     16355  :
     16356else
     16357  { { $as_echo "$as_me:$LINENO: error: oops! av_write_frame ?!?" >&5
     16358$as_echo "$as_me: error: oops! av_write_frame ?!?" >&2;}
     16359   { (exit 1); exit 1; }; }
     16360fi
     16361
    899416362
    899516363for ac_func in img_convert
    8996 do :
    8997   ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
    8998 if test "x$ac_cv_func_img_convert" = xyes; then :
     16364do
     16365as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     16366{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     16367$as_echo_n "checking for $ac_func... " >&6; }
     16368if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     16369  $as_echo_n "(cached) " >&6
     16370else
     16371  cat >conftest.$ac_ext <<_ACEOF
     16372/* confdefs.h.  */
     16373_ACEOF
     16374cat confdefs.h >>conftest.$ac_ext
     16375cat >>conftest.$ac_ext <<_ACEOF
     16376/* end confdefs.h.  */
     16377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     16378   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     16379#define $ac_func innocuous_$ac_func
     16380
     16381/* System header to define __stub macros and hopefully few prototypes,
     16382    which can conflict with char $ac_func (); below.
     16383    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     16384    <limits.h> exists even on freestanding compilers.  */
     16385
     16386#ifdef __STDC__
     16387# include <limits.h>
     16388#else
     16389# include <assert.h>
     16390#endif
     16391
     16392#undef $ac_func
     16393
     16394/* Override any GCC internal prototype to avoid an error.
     16395   Use char because int might match the return type of a GCC
     16396   builtin and then its argument prototype would still apply.  */
     16397#ifdef __cplusplus
     16398extern "C"
     16399#endif
     16400char $ac_func ();
     16401/* The GNU C library defines this for functions which it implements
     16402    to always fail with ENOSYS.  Some functions are actually named
     16403    something starting with __ and the normal name is an alias.  */
     16404#if defined __stub_$ac_func || defined __stub___$ac_func
     16405choke me
     16406#endif
     16407
     16408int
     16409main ()
     16410{
     16411return $ac_func ();
     16412  ;
     16413  return 0;
     16414}
     16415_ACEOF
     16416rm -f conftest.$ac_objext conftest$ac_exeext
     16417if { (ac_try="$ac_link"
     16418case "(($ac_try" in
     16419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16420  *) ac_try_echo=$ac_try;;
     16421esac
     16422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16423$as_echo "$ac_try_echo") >&5
     16424  (eval "$ac_link") 2>conftest.er1
     16425  ac_status=$?
     16426  grep -v '^ *+' conftest.er1 >conftest.err
     16427  rm -f conftest.er1
     16428  cat conftest.err >&5
     16429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16430  (exit $ac_status); } && {
     16431         test -z "$ac_cxx_werror_flag" ||
     16432         test ! -s conftest.err
     16433       } && test -s conftest$ac_exeext && {
     16434         test "$cross_compiling" = yes ||
     16435         $as_test_x conftest$ac_exeext
     16436       }; then
     16437  eval "$as_ac_var=yes"
     16438else
     16439  $as_echo "$as_me: failed program was:" >&5
     16440sed 's/^/| /' conftest.$ac_ext >&5
     16441
     16442        eval "$as_ac_var=no"
     16443fi
     16444
     16445rm -rf conftest.dSYM
     16446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16447      conftest$ac_exeext conftest.$ac_ext
     16448fi
     16449ac_res=`eval 'as_val=${'$as_ac_var'}
     16450                 $as_echo "$as_val"'`
     16451               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     16452$as_echo "$ac_res" >&6; }
     16453as_val=`eval 'as_val=${'$as_ac_var'}
     16454                 $as_echo "$as_val"'`
     16455   if test "x$as_val" = x""yes; then
    899916456  cat >>confdefs.h <<_ACEOF
    9000 #define HAVE_IMG_CONVERT 1
     16457#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    900116458_ACEOF
    900216459
     
    900416461done
    900516462
     16463
    900616464for ac_func in sws_scale
    9007 do :
    9008   ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
    9009 if test "x$ac_cv_func_sws_scale" = xyes; then :
     16465do
     16466as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     16467{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     16468$as_echo_n "checking for $ac_func... " >&6; }
     16469if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     16470  $as_echo_n "(cached) " >&6
     16471else
     16472  cat >conftest.$ac_ext <<_ACEOF
     16473/* confdefs.h.  */
     16474_ACEOF
     16475cat confdefs.h >>conftest.$ac_ext
     16476cat >>conftest.$ac_ext <<_ACEOF
     16477/* end confdefs.h.  */
     16478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     16479   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     16480#define $ac_func innocuous_$ac_func
     16481
     16482/* System header to define __stub macros and hopefully few prototypes,
     16483    which can conflict with char $ac_func (); below.
     16484    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     16485    <limits.h> exists even on freestanding compilers.  */
     16486
     16487#ifdef __STDC__
     16488# include <limits.h>
     16489#else
     16490# include <assert.h>
     16491#endif
     16492
     16493#undef $ac_func
     16494
     16495/* Override any GCC internal prototype to avoid an error.
     16496   Use char because int might match the return type of a GCC
     16497   builtin and then its argument prototype would still apply.  */
     16498#ifdef __cplusplus
     16499extern "C"
     16500#endif
     16501char $ac_func ();
     16502/* The GNU C library defines this for functions which it implements
     16503    to always fail with ENOSYS.  Some functions are actually named
     16504    something starting with __ and the normal name is an alias.  */
     16505#if defined __stub_$ac_func || defined __stub___$ac_func
     16506choke me
     16507#endif
     16508
     16509int
     16510main ()
     16511{
     16512return $ac_func ();
     16513  ;
     16514  return 0;
     16515}
     16516_ACEOF
     16517rm -f conftest.$ac_objext conftest$ac_exeext
     16518if { (ac_try="$ac_link"
     16519case "(($ac_try" in
     16520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16521  *) ac_try_echo=$ac_try;;
     16522esac
     16523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16524$as_echo "$ac_try_echo") >&5
     16525  (eval "$ac_link") 2>conftest.er1
     16526  ac_status=$?
     16527  grep -v '^ *+' conftest.er1 >conftest.err
     16528  rm -f conftest.er1
     16529  cat conftest.err >&5
     16530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16531  (exit $ac_status); } && {
     16532         test -z "$ac_cxx_werror_flag" ||
     16533         test ! -s conftest.err
     16534       } && test -s conftest$ac_exeext && {
     16535         test "$cross_compiling" = yes ||
     16536         $as_test_x conftest$ac_exeext
     16537       }; then
     16538  eval "$as_ac_var=yes"
     16539else
     16540  $as_echo "$as_me: failed program was:" >&5
     16541sed 's/^/| /' conftest.$ac_ext >&5
     16542
     16543        eval "$as_ac_var=no"
     16544fi
     16545
     16546rm -rf conftest.dSYM
     16547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16548      conftest$ac_exeext conftest.$ac_ext
     16549fi
     16550ac_res=`eval 'as_val=${'$as_ac_var'}
     16551                 $as_echo "$as_val"'`
     16552               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     16553$as_echo "$ac_res" >&6; }
     16554as_val=`eval 'as_val=${'$as_ac_var'}
     16555                 $as_echo "$as_val"'`
     16556   if test "x$as_val" = x""yes; then
    901016557  cat >>confdefs.h <<_ACEOF
    9011 #define HAVE_SWS_SCALE 1
     16558#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    901216559_ACEOF
    901316560
     
    901516562done
    901616563
    9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16564cat >conftest.$ac_ext <<_ACEOF
     16565/* confdefs.h.  */
     16566_ACEOF
     16567cat confdefs.h >>conftest.$ac_ext
     16568cat >>conftest.$ac_ext <<_ACEOF
    901816569/* end confdefs.h.  */
    901916570
     
    903616587}
    903716588_ACEOF
    9038 if ac_fn_cxx_try_compile "$LINENO"; then :
     16589rm -f conftest.$ac_objext
     16590if { (ac_try="$ac_compile"
     16591case "(($ac_try" in
     16592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16593  *) ac_try_echo=$ac_try;;
     16594esac
     16595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16596$as_echo "$ac_try_echo") >&5
     16597  (eval "$ac_compile") 2>conftest.er1
     16598  ac_status=$?
     16599  grep -v '^ *+' conftest.er1 >conftest.err
     16600  rm -f conftest.er1
     16601  cat conftest.err >&5
     16602  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16603  (exit $ac_status); } && {
     16604         test -z "$ac_cxx_werror_flag" ||
     16605         test ! -s conftest.err
     16606       } && test -s conftest.$ac_objext; then
    903916607  ac_avmedia_type_video="yes"
    904016608else
    9041   ac_avmedia_type_video="no"
    9042 fi
     16609  $as_echo "$as_me: failed program was:" >&5
     16610sed 's/^/| /' conftest.$ac_ext >&5
     16611
     16612        ac_avmedia_type_video="no"
     16613fi
     16614
    904316615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    904416616if test "$ac_avmedia_type_video" == "yes" ; then
    904516617
    9046 $as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h
    9047 
    9048 fi
    9049 
    9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_alloc_frame in -lavcodec" >&5
     16618cat >>confdefs.h <<\_ACEOF
     16619#define HAVE_AVMEDIA_TYPE_VIDEO 1
     16620_ACEOF
     16621
     16622fi
     16623
     16624
     16625{ $as_echo "$as_me:$LINENO: checking for avcodec_alloc_frame in -lavcodec" >&5
    905116626$as_echo_n "checking for avcodec_alloc_frame in -lavcodec... " >&6; }
    9052 if ${ac_cv_lib_avcodec_avcodec_alloc_frame+:} false; then :
     16627if test "${ac_cv_lib_avcodec_avcodec_alloc_frame+set}" = set; then
    905316628  $as_echo_n "(cached) " >&6
    905416629else
    905516630  ac_check_lib_save_LIBS=$LIBS
    905616631LIBS="-lavcodec  $LIBS"
    9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16632cat >conftest.$ac_ext <<_ACEOF
     16633/* confdefs.h.  */
     16634_ACEOF
     16635cat confdefs.h >>conftest.$ac_ext
     16636cat >>conftest.$ac_ext <<_ACEOF
    905816637/* end confdefs.h.  */
    905916638
     
    907316652}
    907416653_ACEOF
    9075 if ac_fn_cxx_try_link "$LINENO"; then :
     16654rm -f conftest.$ac_objext conftest$ac_exeext
     16655if { (ac_try="$ac_link"
     16656case "(($ac_try" in
     16657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16658  *) ac_try_echo=$ac_try;;
     16659esac
     16660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16661$as_echo "$ac_try_echo") >&5
     16662  (eval "$ac_link") 2>conftest.er1
     16663  ac_status=$?
     16664  grep -v '^ *+' conftest.er1 >conftest.err
     16665  rm -f conftest.er1
     16666  cat conftest.err >&5
     16667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16668  (exit $ac_status); } && {
     16669         test -z "$ac_cxx_werror_flag" ||
     16670         test ! -s conftest.err
     16671       } && test -s conftest$ac_exeext && {
     16672         test "$cross_compiling" = yes ||
     16673         $as_test_x conftest$ac_exeext
     16674       }; then
    907616675  ac_cv_lib_avcodec_avcodec_alloc_frame=yes
    907716676else
    9078   ac_cv_lib_avcodec_avcodec_alloc_frame=no
    9079 fi
    9080 rm -f core conftest.err conftest.$ac_objext \
    9081     conftest$ac_exeext conftest.$ac_ext
     16677  $as_echo "$as_me: failed program was:" >&5
     16678sed 's/^/| /' conftest.$ac_ext >&5
     16679
     16680        ac_cv_lib_avcodec_avcodec_alloc_frame=no
     16681fi
     16682
     16683rm -rf conftest.dSYM
     16684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16685      conftest$ac_exeext conftest.$ac_ext
    908216686LIBS=$ac_check_lib_save_LIBS
    908316687fi
    9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&5
     16688{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&5
    908516689$as_echo "$ac_cv_lib_avcodec_avcodec_alloc_frame" >&6; }
    9086 if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = xyes; then :
     16690if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = x""yes; then
    908716691  cat >>confdefs.h <<_ACEOF
    908816692#define HAVE_LIBAVCODEC 1
     
    909416698
    909516699# Fallback to deprecated av_alloc_format_context if avformat_alloc_context isn't found
    9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat_alloc_context in -lavformat" >&5
     16700
     16701{ $as_echo "$as_me:$LINENO: checking for avformat_alloc_context in -lavformat" >&5
    909716702$as_echo_n "checking for avformat_alloc_context in -lavformat... " >&6; }
    9098 if ${ac_cv_lib_avformat_avformat_alloc_context+:} false; then :
     16703if test "${ac_cv_lib_avformat_avformat_alloc_context+set}" = set; then
    909916704  $as_echo_n "(cached) " >&6
    910016705else
    910116706  ac_check_lib_save_LIBS=$LIBS
    910216707LIBS="-lavformat  $LIBS"
    9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16708cat >conftest.$ac_ext <<_ACEOF
     16709/* confdefs.h.  */
     16710_ACEOF
     16711cat confdefs.h >>conftest.$ac_ext
     16712cat >>conftest.$ac_ext <<_ACEOF
    910416713/* end confdefs.h.  */
    910516714
     
    911916728}
    912016729_ACEOF
    9121 if ac_fn_cxx_try_link "$LINENO"; then :
     16730rm -f conftest.$ac_objext conftest$ac_exeext
     16731if { (ac_try="$ac_link"
     16732case "(($ac_try" in
     16733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16734  *) ac_try_echo=$ac_try;;
     16735esac
     16736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16737$as_echo "$ac_try_echo") >&5
     16738  (eval "$ac_link") 2>conftest.er1
     16739  ac_status=$?
     16740  grep -v '^ *+' conftest.er1 >conftest.err
     16741  rm -f conftest.er1
     16742  cat conftest.err >&5
     16743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16744  (exit $ac_status); } && {
     16745         test -z "$ac_cxx_werror_flag" ||
     16746         test ! -s conftest.err
     16747       } && test -s conftest$ac_exeext && {
     16748         test "$cross_compiling" = yes ||
     16749         $as_test_x conftest$ac_exeext
     16750       }; then
    912216751  ac_cv_lib_avformat_avformat_alloc_context=yes
    912316752else
    9124   ac_cv_lib_avformat_avformat_alloc_context=no
    9125 fi
    9126 rm -f core conftest.err conftest.$ac_objext \
    9127     conftest$ac_exeext conftest.$ac_ext
     16753  $as_echo "$as_me: failed program was:" >&5
     16754sed 's/^/| /' conftest.$ac_ext >&5
     16755
     16756        ac_cv_lib_avformat_avformat_alloc_context=no
     16757fi
     16758
     16759rm -rf conftest.dSYM
     16760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16761      conftest$ac_exeext conftest.$ac_ext
    912816762LIBS=$ac_check_lib_save_LIBS
    912916763fi
    9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_alloc_context" >&5
     16764{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_avformat_alloc_context" >&5
    913116765$as_echo "$ac_cv_lib_avformat_avformat_alloc_context" >&6; }
    9132 if test "x$ac_cv_lib_avformat_avformat_alloc_context" = xyes; then :
     16766if test "x$ac_cv_lib_avformat_avformat_alloc_context" = x""yes; then
    913316767  cat >>confdefs.h <<_ACEOF
    913416768#define HAVE_LIBAVFORMAT 1
     
    913816772
    913916773else
    9140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_alloc_format_context in -lavformat" >&5
     16774
     16775{ $as_echo "$as_me:$LINENO: checking for av_alloc_format_context in -lavformat" >&5
    914116776$as_echo_n "checking for av_alloc_format_context in -lavformat... " >&6; }
    9142 if ${ac_cv_lib_avformat_av_alloc_format_context+:} false; then :
     16777if test "${ac_cv_lib_avformat_av_alloc_format_context+set}" = set; then
    914316778  $as_echo_n "(cached) " >&6
    914416779else
    914516780  ac_check_lib_save_LIBS=$LIBS
    914616781LIBS="-lavformat  $LIBS"
    9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16782cat >conftest.$ac_ext <<_ACEOF
     16783/* confdefs.h.  */
     16784_ACEOF
     16785cat confdefs.h >>conftest.$ac_ext
     16786cat >>conftest.$ac_ext <<_ACEOF
    914816787/* end confdefs.h.  */
    914916788
     
    916316802}
    916416803_ACEOF
    9165 if ac_fn_cxx_try_link "$LINENO"; then :
     16804rm -f conftest.$ac_objext conftest$ac_exeext
     16805if { (ac_try="$ac_link"
     16806case "(($ac_try" in
     16807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16808  *) ac_try_echo=$ac_try;;
     16809esac
     16810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16811$as_echo "$ac_try_echo") >&5
     16812  (eval "$ac_link") 2>conftest.er1
     16813  ac_status=$?
     16814  grep -v '^ *+' conftest.er1 >conftest.err
     16815  rm -f conftest.er1
     16816  cat conftest.err >&5
     16817  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16818  (exit $ac_status); } && {
     16819         test -z "$ac_cxx_werror_flag" ||
     16820         test ! -s conftest.err
     16821       } && test -s conftest$ac_exeext && {
     16822         test "$cross_compiling" = yes ||
     16823         $as_test_x conftest$ac_exeext
     16824       }; then
    916616825  ac_cv_lib_avformat_av_alloc_format_context=yes
    916716826else
    9168   ac_cv_lib_avformat_av_alloc_format_context=no
    9169 fi
    9170 rm -f core conftest.err conftest.$ac_objext \
    9171     conftest$ac_exeext conftest.$ac_ext
     16827  $as_echo "$as_me: failed program was:" >&5
     16828sed 's/^/| /' conftest.$ac_ext >&5
     16829
     16830        ac_cv_lib_avformat_av_alloc_format_context=no
     16831fi
     16832
     16833rm -rf conftest.dSYM
     16834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16835      conftest$ac_exeext conftest.$ac_ext
    917216836LIBS=$ac_check_lib_save_LIBS
    917316837fi
    9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_alloc_format_context" >&5
     16838{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_alloc_format_context" >&5
    917516839$as_echo "$ac_cv_lib_avformat_av_alloc_format_context" >&6; }
    9176 if test "x$ac_cv_lib_avformat_av_alloc_format_context" = xyes; then :
     16840if test "x$ac_cv_lib_avformat_av_alloc_format_context" = x""yes; then
    917716841  cat >>confdefs.h <<_ACEOF
    917816842#define HAVE_LIBAVFORMAT 1
     
    918216846
    918316847else
    9184   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libavformat not usable" >&5
     16848  { $as_echo "$as_me:$LINENO: WARNING: libavformat not usable" >&5
    918516849$as_echo "$as_me: WARNING: libavformat not usable" >&2;}
    918616850fi
     
    919016854
    919116855
    9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nVidia Cg installation" >&5
     16856{ $as_echo "$as_me:$LINENO: checking for nVidia Cg installation" >&5
    919316857$as_echo_n "checking for nVidia Cg installation... " >&6; }
    919416858CG_DIR=""
     
    920316867  fi
    920416868done
    9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CG_DIR}" >&5
     16869{ $as_echo "$as_me:$LINENO: result: ${CG_DIR}" >&5
    920616870$as_echo "${CG_DIR}" >&6; }
    920716871
     
    921016874save_CPPFLAGS=$CPPFLAGS
    921116875CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS"
     16876
    921216877for ac_header in Cg/cgGL.h
    9213 do :
    9214   ac_fn_cxx_check_header_mongrel "$LINENO" "Cg/cgGL.h" "ac_cv_header_Cg_cgGL_h" "$ac_includes_default"
    9215 if test "x$ac_cv_header_Cg_cgGL_h" = xyes; then :
     16878do
     16879as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     16880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     16881  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     16882$as_echo_n "checking for $ac_header... " >&6; }
     16883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     16884  $as_echo_n "(cached) " >&6
     16885fi
     16886ac_res=`eval 'as_val=${'$as_ac_Header'}
     16887                 $as_echo "$as_val"'`
     16888               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     16889$as_echo "$ac_res" >&6; }
     16890else
     16891  # Is the header compilable?
     16892{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     16893$as_echo_n "checking $ac_header usability... " >&6; }
     16894cat >conftest.$ac_ext <<_ACEOF
     16895/* confdefs.h.  */
     16896_ACEOF
     16897cat confdefs.h >>conftest.$ac_ext
     16898cat >>conftest.$ac_ext <<_ACEOF
     16899/* end confdefs.h.  */
     16900$ac_includes_default
     16901#include <$ac_header>
     16902_ACEOF
     16903rm -f conftest.$ac_objext
     16904if { (ac_try="$ac_compile"
     16905case "(($ac_try" in
     16906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16907  *) ac_try_echo=$ac_try;;
     16908esac
     16909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16910$as_echo "$ac_try_echo") >&5
     16911  (eval "$ac_compile") 2>conftest.er1
     16912  ac_status=$?
     16913  grep -v '^ *+' conftest.er1 >conftest.err
     16914  rm -f conftest.er1
     16915  cat conftest.err >&5
     16916  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16917  (exit $ac_status); } && {
     16918         test -z "$ac_cxx_werror_flag" ||
     16919         test ! -s conftest.err
     16920       } && test -s conftest.$ac_objext; then
     16921  ac_header_compiler=yes
     16922else
     16923  $as_echo "$as_me: failed program was:" >&5
     16924sed 's/^/| /' conftest.$ac_ext >&5
     16925
     16926        ac_header_compiler=no
     16927fi
     16928
     16929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     16930{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     16931$as_echo "$ac_header_compiler" >&6; }
     16932
     16933# Is the header present?
     16934{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     16935$as_echo_n "checking $ac_header presence... " >&6; }
     16936cat >conftest.$ac_ext <<_ACEOF
     16937/* confdefs.h.  */
     16938_ACEOF
     16939cat confdefs.h >>conftest.$ac_ext
     16940cat >>conftest.$ac_ext <<_ACEOF
     16941/* end confdefs.h.  */
     16942#include <$ac_header>
     16943_ACEOF
     16944if { (ac_try="$ac_cpp conftest.$ac_ext"
     16945case "(($ac_try" in
     16946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16947  *) ac_try_echo=$ac_try;;
     16948esac
     16949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16950$as_echo "$ac_try_echo") >&5
     16951  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     16952  ac_status=$?
     16953  grep -v '^ *+' conftest.er1 >conftest.err
     16954  rm -f conftest.er1
     16955  cat conftest.err >&5
     16956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16957  (exit $ac_status); } >/dev/null && {
     16958         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     16959         test ! -s conftest.err
     16960       }; then
     16961  ac_header_preproc=yes
     16962else
     16963  $as_echo "$as_me: failed program was:" >&5
     16964sed 's/^/| /' conftest.$ac_ext >&5
     16965
     16966  ac_header_preproc=no
     16967fi
     16968
     16969rm -f conftest.err conftest.$ac_ext
     16970{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     16971$as_echo "$ac_header_preproc" >&6; }
     16972
     16973# So?  What about this header?
     16974case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     16975  yes:no: )
     16976    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     16977$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     16978    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     16979$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     16980    ac_header_preproc=yes
     16981    ;;
     16982  no:yes:* )
     16983    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     16984$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     16985    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     16986$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     16987    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     16988$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     16989    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     16990$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     16991    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     16992$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     16993    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     16994$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     16995    ( cat <<\_ASBOX
     16996## ----------------------------------- ##
     16997## Report this to rappture@nanohub.org ##
     16998## ----------------------------------- ##
     16999_ASBOX
     17000     ) | sed "s/^/$as_me: WARNING:     /" >&2
     17001    ;;
     17002esac
     17003{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     17004$as_echo_n "checking for $ac_header... " >&6; }
     17005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     17006  $as_echo_n "(cached) " >&6
     17007else
     17008  eval "$as_ac_Header=\$ac_header_preproc"
     17009fi
     17010ac_res=`eval 'as_val=${'$as_ac_Header'}
     17011                 $as_echo "$as_val"'`
     17012               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     17013$as_echo "$ac_res" >&6; }
     17014
     17015fi
     17016as_val=`eval 'as_val=${'$as_ac_Header'}
     17017                 $as_echo "$as_val"'`
     17018   if test "x$as_val" = x""yes; then
    921617019  cat >>confdefs.h <<_ACEOF
    9217 #define HAVE_CG_CGGL_H 1
    9218 _ACEOF
    9219 
    9220 else
    9221   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find nVidia Cg headers" >&5
     17020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     17021_ACEOF
     17022
     17023else
     17024  { $as_echo "$as_me:$LINENO: WARNING: cannot find nVidia Cg headers" >&5
    922217025$as_echo "$as_me: WARNING: cannot find nVidia Cg headers" >&2;}
    922317026fi
     
    928317086
    928417087
    9285 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vrmath/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh"
     17088ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vrmath/Makefile nanovis/imgLoaders/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh"
    928617089
    928717090cat >confcache <<\_ACEOF
     
    931217115    *${as_nl}*)
    931317116      case $ac_var in #(
    9314       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     17117      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
    931517118$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
    931617119      esac
     
    931817121      _ | IFS | as_nl) ;; #(
    931917122      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
    9320       *) { eval $ac_var=; unset $ac_var;} ;;
     17123      *) $as_unset $ac_var ;;
    932117124      esac ;;
    932217125    esac
     
    932617129    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    932717130    *${as_nl}ac_space=\ *)
    9328       # `set' does not quote correctly, so add quotes: double-quote
    9329       # substitution turns \\\\ into \\, and sed turns \\ into \.
     17131      # `set' does not quote correctly, so add quotes (double-quote
     17132      # substitution turns \\\\ into \\, and sed turns \\ into \).
    933017133      sed -n \
    933117134        "s/'/'\\\\''/g;
     
    934917152if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
    935017153  if test -w "$cache_file"; then
    9351     if test "x$cache_file" != "x/dev/null"; then
    9352       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
     17154    test "x$cache_file" != "x/dev/null" &&
     17155      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
    935317156$as_echo "$as_me: updating cache $cache_file" >&6;}
    9354       if test ! -f "$cache_file" || test -h "$cache_file"; then
    9355         cat confcache >"$cache_file"
    9356       else
    9357         case $cache_file in #(
    9358         */* | ?:*)
    9359           mv -f confcache "$cache_file"$$ &&
    9360           mv -f "$cache_file"$$ "$cache_file" ;; #(
    9361         *)
    9362           mv -f confcache "$cache_file" ;;
    9363         esac
    9364       fi
    9365     fi
     17157    cat confcache >$cache_file
    936617158  else
    9367     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     17159    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
    936817160$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    936917161  fi
     
    937917171ac_libobjs=
    938017172ac_ltlibobjs=
    9381 U=
    938217173for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    938317174  # 1. Remove the extension, and $U if already installed.
     
    938617177  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
    938717178  #    will be set to the directory where LIBOBJS objects are built.
    9388   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
    9389   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
     17179  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     17180  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
    939017181done
    939117182LIBOBJS=$ac_libobjs
     
    939617187
    939717188
    9398 : "${CONFIG_STATUS=./config.status}"
     17189: ${CONFIG_STATUS=./config.status}
    939917190ac_write_fail=0
    940017191ac_clean_files_save=$ac_clean_files
    940117192ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    9402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
     17193{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    940317194$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
    9404 as_write_fail=0
    9405 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
     17195cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    940617196#! $SHELL
    940717197# Generated by $as_me.
     
    941317203ac_cs_recheck=false
    941417204ac_cs_silent=false
    9415 
    941617205SHELL=\${CONFIG_SHELL-$SHELL}
    9417 export SHELL
    9418 _ASEOF
    9419 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
    9420 ## -------------------- ##
    9421 ## M4sh Initialization. ##
    9422 ## -------------------- ##
     17206_ACEOF
     17207
     17208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     17209## --------------------- ##
     17210## M4sh Initialization.  ##
     17211## --------------------- ##
    942317212
    942417213# Be more Bourne compatible
    942517214DUALCASE=1; export DUALCASE # for MKS sh
    9426 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     17215if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    942717216  emulate sh
    942817217  NULLCMD=:
     
    943217221  setopt NO_GLOB_SUBST
    943317222else
    9434   case `(set -o) 2>/dev/null` in #(
    9435   *posix*) :
    9436     set -o posix ;; #(
    9437   *) :
    9438      ;;
    9439 esac
    9440 fi
    9441 
     17223  case `(set -o) 2>/dev/null` in
     17224  *posix*) set -o posix ;;
     17225esac
     17226
     17227fi
     17228
     17229
     17230
     17231
     17232# PATH needs CR
     17233# Avoid depending upon Character Ranges.
     17234as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     17235as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     17236as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     17237as_cr_digits='0123456789'
     17238as_cr_alnum=$as_cr_Letters$as_cr_digits
    944217239
    944317240as_nl='
     
    944817245as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    944917246as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    9450 # Prefer a ksh shell builtin over an external printf program on Solaris,
    9451 # but without wasting forks for bash or zsh.
    9452 if test -z "$BASH_VERSION$ZSH_VERSION" \
    9453     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
    9454   as_echo='print -r --'
    9455   as_echo_n='print -rn --'
    9456 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     17247if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    945717248  as_echo='printf %s\n'
    945817249  as_echo_n='printf %s'
     
    946517256    as_echo_n_body='eval
    946617257      arg=$1;
    9467       case $arg in #(
     17258      case $arg in
    946817259      *"$as_nl"*)
    946917260        expr "X$arg" : "X\\(.*\\)$as_nl";
     
    948817279fi
    948917280
     17281# Support unset when possible.
     17282if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     17283  as_unset=unset
     17284else
     17285  as_unset=false
     17286fi
     17287
    949017288
    949117289# IFS
     
    949717295
    949817296# Find who we are.  Look in the path if we contain no directory separator.
    9499 as_myself=
    9500 case $0 in #((
     17297case $0 in
    950117298  *[\\/]* ) as_myself=$0 ;;
    950217299  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    950517302  IFS=$as_save_IFS
    950617303  test -z "$as_dir" && as_dir=.
    9507     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    9508   done
     17304  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     17305done
    950917306IFS=$as_save_IFS
    951017307
     
    951817315if test ! -f "$as_myself"; then
    951917316  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    9520   exit 1
    9521 fi
    9522 
    9523 # Unset variables that we do not need and which cause bugs (e.g. in
    9524 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    9525 # suppresses any "Segmentation fault" message there.  '((' could
    9526 # trigger a bug in pdksh 5.2.14.
    9527 for as_var in BASH_ENV ENV MAIL MAILPATH
    9528 do eval test x\${$as_var+set} = xset \
    9529   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     17317  { (exit 1); exit 1; }
     17318fi
     17319
     17320# Work around bugs in pre-3.0 UWIN ksh.
     17321for as_var in ENV MAIL MAILPATH
     17322do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    953017323done
    953117324PS1='$ '
     
    953917332export LANGUAGE
    954017333
    9541 # CDPATH.
    9542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    9543 
    9544 
    9545 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    9546 # ----------------------------------------
    9547 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    9548 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    9549 # script with STATUS, using 1 if that was 0.
    9550 as_fn_error ()
    9551 {
    9552   as_status=$1; test $as_status -eq 0 && as_status=1
    9553   if test "$4"; then
    9554     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    9555     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    9556   fi
    9557   $as_echo "$as_me: error: $2" >&2
    9558   as_fn_exit $as_status
    9559 } # as_fn_error
    9560 
    9561 
    9562 # as_fn_set_status STATUS
    9563 # -----------------------
    9564 # Set $? to STATUS, without forking.
    9565 as_fn_set_status ()
    9566 {
    9567   return $1
    9568 } # as_fn_set_status
    9569 
    9570 # as_fn_exit STATUS
    9571 # -----------------
    9572 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    9573 as_fn_exit ()
    9574 {
    9575   set +e
    9576   as_fn_set_status $1
    9577   exit $1
    9578 } # as_fn_exit
    9579 
    9580 # as_fn_unset VAR
    9581 # ---------------
    9582 # Portably unset VAR.
    9583 as_fn_unset ()
    9584 {
    9585   { eval $1=; unset $1;}
    9586 }
    9587 as_unset=as_fn_unset
    9588 # as_fn_append VAR VALUE
    9589 # ----------------------
    9590 # Append the text in VALUE to the end of the definition contained in VAR. Take
    9591 # advantage of any shell optimizations that allow amortized linear growth over
    9592 # repeated appends, instead of the typical quadratic growth present in naive
    9593 # implementations.
    9594 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    9595   eval 'as_fn_append ()
    9596   {
    9597     eval $1+=\$2
    9598   }'
    9599 else
    9600   as_fn_append ()
    9601   {
    9602     eval $1=\$$1\$2
    9603   }
    9604 fi # as_fn_append
    9605 
    9606 # as_fn_arith ARG...
    9607 # ------------------
    9608 # Perform arithmetic evaluation on the ARGs, and store the result in the
    9609 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    9610 # must be portable across $(()) and expr.
    9611 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    9612   eval 'as_fn_arith ()
    9613   {
    9614     as_val=$(( $* ))
    9615   }'
    9616 else
    9617   as_fn_arith ()
    9618   {
    9619     as_val=`expr "$@" || test $? -eq 1`
    9620   }
    9621 fi # as_fn_arith
    9622 
    9623 
     17334# Required to use basename.
    962417335if expr a : '\(a\)' >/dev/null 2>&1 &&
    962517336   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     
    963517346fi
    963617347
    9637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    9638   as_dirname=dirname
    9639 else
    9640   as_dirname=false
    9641 fi
    9642 
     17348
     17349# Name of the executable.
    964317350as_me=`$as_basename -- "$0" ||
    964417351$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     
    966017367          s/.*/./; q'`
    966117368
    9662 # Avoid depending upon Character Ranges.
    9663 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    9664 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    9665 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    9666 as_cr_digits='0123456789'
    9667 as_cr_alnum=$as_cr_Letters$as_cr_digits
     17369# CDPATH.
     17370$as_unset CDPATH
     17371
     17372
     17373
     17374  as_lineno_1=$LINENO
     17375  as_lineno_2=$LINENO
     17376  test "x$as_lineno_1" != "x$as_lineno_2" &&
     17377  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
     17378
     17379  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     17380  # uniformly replaced by the line number.  The first 'sed' inserts a
     17381  # line-number line after each line using $LINENO; the second 'sed'
     17382  # does the real work.  The second script uses 'N' to pair each
     17383  # line-number line with the line containing $LINENO, and appends
     17384  # trailing '-' during substitution so that $LINENO is not a special
     17385  # case at line end.
     17386  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     17387  # scripts with optimization help from Paolo Bonzini.  Blame Lee
     17388  # E. McMahon (1931-1989) for sed's syntax.  :-)
     17389  sed -n '
     17390    p
     17391    /[$]LINENO/=
     17392  ' <$as_myself |
     17393    sed '
     17394      s/[$]LINENO.*/&-/
     17395      t lineno
     17396      b
     17397      :lineno
     17398      N
     17399      :loop
     17400      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
     17401      t loop
     17402      s/-\n.*//
     17403    ' >$as_me.lineno &&
     17404  chmod +x "$as_me.lineno" ||
     17405    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     17406   { (exit 1); exit 1; }; }
     17407
     17408  # Don't try to exec as it changes $[0], causing all sort of problems
     17409  # (the dirname of $[0] is not the place where we might find the
     17410  # original and so on.  Autoconf is especially sensitive to this).
     17411  . "./$as_me.lineno"
     17412  # Exit status is that of the last command.
     17413  exit
     17414}
     17415
     17416
     17417if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     17418  as_dirname=dirname
     17419else
     17420  as_dirname=false
     17421fi
    966817422
    966917423ECHO_C= ECHO_N= ECHO_T=
    9670 case `echo -n x` in #(((((
     17424case `echo -n x` in
    967117425-n*)
    9672   case `echo 'xy\c'` in
     17426  case `echo 'x\c'` in
    967317427  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
    9674   xy)  ECHO_C='\c';;
    9675   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    9676        ECHO_T=' ';;
     17428  *)   ECHO_C='\c';;
    967717429  esac;;
    967817430*)
    967917431  ECHO_N='-n';;
    968017432esac
     17433if expr a : '\(a\)' >/dev/null 2>&1 &&
     17434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     17435  as_expr=expr
     17436else
     17437  as_expr=false
     17438fi
    968117439
    968217440rm -f conf$$ conf$$.exe conf$$.file
     
    969317451    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    969417452    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    9695     # In both cases, we have to default to `cp -pR'.
     17453    # In both cases, we have to default to `cp -p'.
    969617454    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    9697       as_ln_s='cp -pR'
     17455      as_ln_s='cp -p'
    969817456  elif ln conf$$.file conf$$ 2>/dev/null; then
    969917457    as_ln_s=ln
    970017458  else
    9701     as_ln_s='cp -pR'
     17459    as_ln_s='cp -p'
    970217460  fi
    970317461else
    9704   as_ln_s='cp -pR'
     17462  as_ln_s='cp -p'
    970517463fi
    970617464rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    970717465rmdir conf$$.dir 2>/dev/null
    970817466
    9709 
    9710 # as_fn_mkdir_p
    9711 # -------------
    9712 # Create "$as_dir" as a directory, including parents if necessary.
    9713 as_fn_mkdir_p ()
    9714 {
    9715 
    9716   case $as_dir in #(
    9717   -*) as_dir=./$as_dir;;
    9718   esac
    9719   test -d "$as_dir" || eval $as_mkdir_p || {
    9720     as_dirs=
    9721     while :; do
    9722       case $as_dir in #(
    9723       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    9724       *) as_qdir=$as_dir;;
    9725       esac
    9726       as_dirs="'$as_qdir' $as_dirs"
    9727       as_dir=`$as_dirname -- "$as_dir" ||
    9728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    9729          X"$as_dir" : 'X\(//\)[^/]' \| \
    9730          X"$as_dir" : 'X\(//\)$' \| \
    9731          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    9732 $as_echo X"$as_dir" |
    9733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    9734             s//\1/
    9735             q
    9736           }
    9737           /^X\(\/\/\)[^/].*/{
    9738             s//\1/
    9739             q
    9740           }
    9741           /^X\(\/\/\)$/{
    9742             s//\1/
    9743             q
    9744           }
    9745           /^X\(\/\).*/{
    9746             s//\1/
    9747             q
    9748           }
    9749           s/.*/./; q'`
    9750       test -d "$as_dir" && break
    9751     done
    9752     test -z "$as_dirs" || eval "mkdir $as_dirs"
    9753   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    9754 
    9755 
    9756 } # as_fn_mkdir_p
    975717467if mkdir -p . 2>/dev/null; then
    9758   as_mkdir_p='mkdir -p "$as_dir"'
     17468  as_mkdir_p=:
    975917469else
    976017470  test -d ./-p && rmdir ./-p
     
    976217472fi
    976317473
    9764 
    9765 # as_fn_executable_p FILE
    9766 # -----------------------
    9767 # Test if FILE is an executable regular file.
    9768 as_fn_executable_p ()
    9769 {
    9770   test -f "$1" && test -x "$1"
    9771 } # as_fn_executable_p
    9772 as_test_x='test -x'
    9773 as_executable_p=as_fn_executable_p
     17474if test -x / >/dev/null 2>&1; then
     17475  as_test_x='test -x'
     17476else
     17477  if ls -dL / >/dev/null 2>&1; then
     17478    as_ls_L_option=L
     17479  else
     17480    as_ls_L_option=
     17481  fi
     17482  as_test_x='
     17483    eval sh -c '\''
     17484      if test -d "$1"; then
     17485        test -d "$1/.";
     17486      else
     17487        case $1 in
     17488        -*)set "./$1";;
     17489        esac;
     17490        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
     17491        ???[sx]*):;;*)false;;esac;fi
     17492    '\'' sh
     17493  '
     17494fi
     17495as_executable_p=$as_test_x
    977417496
    977517497# Sed expression to map a string onto a valid CPP name.
     
    978117503
    978217504exec 6>&1
    9783 ## ----------------------------------- ##
    9784 ## Main body of $CONFIG_STATUS script. ##
    9785 ## ----------------------------------- ##
    9786 _ASEOF
    9787 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
    9788 
    9789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    9790 # Save the log message, to keep $0 and so on meaningful, and to
     17505
     17506# Save the log message, to keep $[0] and so on meaningful, and to
    979117507# report actual input values of CONFIG_FILES etc. instead of their
    979217508# values after options handling.
    979317509ac_log="
    979417510This file was extended by vizservers $as_me 0.1, which was
    9795 generated by GNU Autoconf 2.69.  Invocation command line was
     17511generated by GNU Autoconf 2.63.  Invocation command line was
    979617512
    979717513  CONFIG_FILES    = $CONFIG_FILES
     
    982417540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    982517541ac_cs_usage="\
    9826 \`$as_me' instantiates files and other configuration actions
    9827 from templates according to the current configuration.  Unless the files
    9828 and actions are specified as TAGs, all are instantiated by default.
    9829 
    9830 Usage: $0 [OPTION]... [TAG]...
     17542\`$as_me' instantiates files from templates according to the
     17543current configuration.
     17544
     17545Usage: $0 [OPTION]... [FILE]...
    983117546
    983217547  -h, --help       print this help, then exit
    983317548  -V, --version    print version number and configuration settings, then exit
    9834       --config     print configuration, then exit
    983517549  -q, --quiet, --silent
    983617550                   do not print progress messages
     
    984817562$config_headers
    984917563
    9850 Report bugs to <rappture@nanohub.org>."
     17564Report bugs to <bug-autoconf@gnu.org>."
    985117565
    985217566_ACEOF
    985317567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    9854 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    985517568ac_cs_version="\\
    985617569vizservers config.status 0.1
    9857 configured by $0, generated by GNU Autoconf 2.69,
    9858   with options \\"\$ac_cs_config\\"
    9859 
    9860 Copyright (C) 2012 Free Software Foundation, Inc.
     17570configured by $0, generated by GNU Autoconf 2.63,
     17571  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
     17572
     17573Copyright (C) 2008 Free Software Foundation, Inc.
    986117574This config.status script is free software; the Free Software Foundation
    986217575gives unlimited permission to copy, distribute and modify it."
     
    987517588do
    987617589  case $1 in
    9877   --*=?*)
     17590  --*=*)
    987817591    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    987917592    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    9880     ac_shift=:
    9881     ;;
    9882   --*=)
    9883     ac_option=`expr "X$1" : 'X\([^=]*\)='`
    9884     ac_optarg=
    988517593    ac_shift=:
    988617594    ;;
     
    989817606  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    989917607    $as_echo "$ac_cs_version"; exit ;;
    9900   --config | --confi | --conf | --con | --co | --c )
    9901     $as_echo "$ac_cs_config"; exit ;;
    990217608  --debug | --debu | --deb | --de | --d | -d )
    990317609    debug=: ;;
     
    990617612    case $ac_optarg in
    990717613    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    9908     '') as_fn_error $? "missing file argument" ;;
    990917614    esac
    9910     as_fn_append CONFIG_FILES " '$ac_optarg'"
     17615    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
    991117616    ac_need_defaults=false;;
    991217617  --header | --heade | --head | --hea )
     
    991517620    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    991617621    esac
    9917     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     17622    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
    991817623    ac_need_defaults=false;;
    991917624  --he | --h)
    992017625    # Conflict between --help and --header
    9921     as_fn_error $? "ambiguous option: \`$1'
    9922 Try \`$0 --help' for more information.";;
     17626    { $as_echo "$as_me: error: ambiguous option: $1
     17627Try \`$0 --help' for more information." >&2
     17628   { (exit 1); exit 1; }; };;
    992317629  --help | --hel | -h )
    992417630    $as_echo "$ac_cs_usage"; exit ;;
     
    992817634
    992917635  # This is an error.
    9930   -*) as_fn_error $? "unrecognized option: \`$1'
    9931 Try \`$0 --help' for more information." ;;
    9932 
    9933   *) as_fn_append ac_config_targets " $1"
     17636  -*) { $as_echo "$as_me: error: unrecognized option: $1
     17637Try \`$0 --help' for more information." >&2
     17638   { (exit 1); exit 1; }; } ;;
     17639
     17640  *) ac_config_targets="$ac_config_targets $1"
    993417641     ac_need_defaults=false ;;
    993517642
     
    994817655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    994917656if \$ac_cs_recheck; then
    9950   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     17657  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    995117658  shift
    995217659  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     
    998717694    "nanovis/vrmath/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrmath/Makefile" ;;
    998817695    "nanovis/imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/imgLoaders/Makefile" ;;
    9989     "nanovis/transfer-function/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/transfer-function/Makefile" ;;
    999017696    "pymolproxy/Makefile") CONFIG_FILES="$CONFIG_FILES pymolproxy/Makefile" ;;
    999117697    "vtkvis/Doxyfile") CONFIG_FILES="$CONFIG_FILES vtkvis/Doxyfile" ;;
     
    999417700    "start_nanoscale.sh") CONFIG_FILES="$CONFIG_FILES start_nanoscale.sh" ;;
    999517701
    9996   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
     17702  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     17703$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     17704   { (exit 1); exit 1; }; };;
    999717705  esac
    999817706done
     
    1001617724$debug ||
    1001717725{
    10018   tmp= ac_tmp=
     17726  tmp=
    1001917727  trap 'exit_status=$?
    10020   : "${ac_tmp:=$tmp}"
    10021   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
     17728  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
    1002217729' 0
    10023   trap 'as_fn_exit 1' 1 2 13 15
     17730  trap '{ (exit 1); exit 1; }' 1 2 13 15
    1002417731}
    1002517732# Create a (secure) tmp directory for tmp files.
     
    1002717734{
    1002817735  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    10029   test -d "$tmp"
     17736  test -n "$tmp" && test -d "$tmp"
    1003017737}  ||
    1003117738{
    1003217739  tmp=./conf$$-$RANDOM
    1003317740  (umask 077 && mkdir "$tmp")
    10034 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
    10035 ac_tmp=$tmp
     17741} ||
     17742{
     17743   $as_echo "$as_me: cannot create a temporary directory in ." >&2
     17744   { (exit 1); exit 1; }
     17745}
    1003617746
    1003717747# Set up the scripts for CONFIG_FILES section.
     
    1004117751
    1004217752
    10043 ac_cr=`echo X | tr X '\015'`
    10044 # On cygwin, bash can eat \r inside `` if the user requested igncr.
    10045 # But we know of no other shell where ac_cr would be empty at this
    10046 # point, so we can use a bashism as a fallback.
    10047 if test "x$ac_cr" = x; then
    10048   eval ac_cr=\$\'\\r\'
    10049 fi
     17753ac_cr='
     17754'
    1005017755ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
    1005117756if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     
    1005517760fi
    1005617761
    10057 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
     17762echo 'BEGIN {' >"$tmp/subs1.awk" &&
    1005817763_ACEOF
    1005917764
     
    1006417769  echo "_ACEOF"
    1006517770} >conf$$subs.sh ||
    10066   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
    10067 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     17771  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
     17772$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
     17773   { (exit 1); exit 1; }; }
     17774ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
    1006817775ac_delim='%!_!# '
    1006917776for ac_last_try in false false false false false :; do
    1007017777  . ./conf$$subs.sh ||
    10071     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     17778    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
     17779$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
     17780   { (exit 1); exit 1; }; }
    1007217781
    1007317782  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     
    1007517784    break
    1007617785  elif $ac_last_try; then
    10077     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     17786    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
     17787$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
     17788   { (exit 1); exit 1; }; }
    1007817789  else
    1007917790    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    1008317794
    1008417795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    10085 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
     17796cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
    1008617797_ACEOF
    1008717798sed -n '
     
    1009717808:nl
    1009817809h
    10099 s/\(.\{148\}\)..*/\1/
     17810s/\(.\{148\}\).*/\1/
    1010017811t more1
    1010117812s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     
    1011117822:delim
    1011217823h
    10113 s/\(.\{148\}\)..*/\1/
     17824s/\(.\{148\}\).*/\1/
    1011417825t more2
    1011517826s/["\\]/\\&/g; s/^/"/; s/$/"/
     
    1013117842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    1013217843_ACAWK
    10133 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
     17844cat >>"\$tmp/subs1.awk" <<_ACAWK &&
    1013417845  for (key in S) S_is_set[key] = 1
    1013517846  FS = ""
     
    1016317874else
    1016417875  cat
    10165 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
    10166   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
    10167 _ACEOF
    10168 
    10169 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
    10170 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     17876fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     17877  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
     17878$as_echo "$as_me: error: could not setup config files machinery" >&2;}
     17879   { (exit 1); exit 1; }; }
     17880_ACEOF
     17881
     17882# VPATH may cause trouble with some makes, so we remove $(srcdir),
     17883# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    1017117884# trailing colons and then remove the whole line if VPATH becomes empty
    1017217885# (actually we leave an empty line to preserve line numbers).
    1017317886if test "x$srcdir" = x.; then
    10174   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
    10175 h
    10176 s///
    10177 s/^/:/
    10178 s/[      ]*$/:/
    10179 s/:\$(srcdir):/:/g
    10180 s/:\${srcdir}:/:/g
    10181 s/:@srcdir@:/:/g
    10182 s/^:*//
     17887  ac_vpsub='/^[  ]*VPATH[        ]*=/{
     17888s/:*\$(srcdir):*/:/
     17889s/:*\${srcdir}:*/:/
     17890s/:*@srcdir@:*/:/
     17891s/^\([^=]*=[     ]*\):*/\1/
    1018317892s/:*$//
    10184 x
    10185 s/\(=[   ]*\).*/\1/
    10186 G
    10187 s/\n//
    1018817893s/^[^=]*=[       ]*$//
    1018917894}'
     
    1019717902# This happens for instance with `./config.status Makefile'.
    1019817903if test -n "$CONFIG_HEADERS"; then
    10199 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
     17904cat >"$tmp/defines.awk" <<\_ACAWK ||
    1020017905BEGIN {
    1020117906_ACEOF
     
    1020917914ac_delim='%!_!# '
    1021017915for ac_last_try in false false :; do
    10211   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
    10212   if test -z "$ac_tt"; then
     17916  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
     17917  if test -z "$ac_t"; then
    1021317918    break
    1021417919  elif $ac_last_try; then
    10215     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     17920    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
     17921$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
     17922   { (exit 1); exit 1; }; }
    1021617923  else
    1021717924    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    1029818005_ACEOF
    1029918006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    10300   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     18007  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
     18008$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
     18009   { (exit 1); exit 1; }; }
    1030118010fi # test -n "$CONFIG_HEADERS"
    1030218011
     
    1031118020  case $ac_mode$ac_tag in
    1031218021  :[FHL]*:*);;
    10313   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
     18022  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
     18023$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
     18024   { (exit 1); exit 1; }; };;
    1031418025  :[FH]-) ac_tag=-:-;;
    1031518026  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     
    1033018041    do
    1033118042      case $ac_f in
    10332       -) ac_f="$ac_tmp/stdin";;
     18043      -) ac_f="$tmp/stdin";;
    1033318044      *) # Look for the file first in the build tree, then in the source tree
    1033418045         # (if the path is not absolute).  The absolute path cannot be DOS-style,
     
    1033918050           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    1034018051           esac ||
    10341            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
     18052           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
     18053$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
     18054   { (exit 1); exit 1; }; };;
    1034218055      esac
    1034318056      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
    10344       as_fn_append ac_file_inputs " '$ac_f'"
     18057      ac_file_inputs="$ac_file_inputs '$ac_f'"
    1034518058    done
    1034618059
     
    1035318066    if test x"$ac_file" != x-; then
    1035418067      configure_input="$ac_file.  $configure_input"
    10355       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
     18068      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
    1035618069$as_echo "$as_me: creating $ac_file" >&6;}
    1035718070    fi
     
    1036518078
    1036618079    case $ac_tag in
    10367     *:-:* | *:-) cat >"$ac_tmp/stdin" \
    10368       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
     18080    *:-:* | *:-) cat >"$tmp/stdin" \
     18081      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
     18082$as_echo "$as_me: error: could not create $ac_file" >&2;}
     18083   { (exit 1); exit 1; }; } ;;
    1036918084    esac
    1037018085    ;;
     
    1039418109          }
    1039518110          s/.*/./; q'`
    10396   as_dir="$ac_dir"; as_fn_mkdir_p
     18111  { as_dir="$ac_dir"
     18112  case $as_dir in #(
     18113  -*) as_dir=./$as_dir;;
     18114  esac
     18115  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
     18116    as_dirs=
     18117    while :; do
     18118      case $as_dir in #(
     18119      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     18120      *) as_qdir=$as_dir;;
     18121      esac
     18122      as_dirs="'$as_qdir' $as_dirs"
     18123      as_dir=`$as_dirname -- "$as_dir" ||
     18124$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     18125         X"$as_dir" : 'X\(//\)[^/]' \| \
     18126         X"$as_dir" : 'X\(//\)$' \| \
     18127         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     18128$as_echo X"$as_dir" |
     18129    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     18130            s//\1/
     18131            q
     18132          }
     18133          /^X\(\/\/\)[^/].*/{
     18134            s//\1/
     18135            q
     18136          }
     18137          /^X\(\/\/\)$/{
     18138            s//\1/
     18139            q
     18140          }
     18141          /^X\(\/\).*/{
     18142            s//\1/
     18143            q
     18144          }
     18145          s/.*/./; q'`
     18146      test -d "$as_dir" && break
     18147    done
     18148    test -z "$as_dirs" || eval "mkdir $as_dirs"
     18149  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
     18150$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
     18151   { (exit 1); exit 1; }; }; }
    1039718152  ac_builddir=.
    1039818153
     
    1045118206# FIXME: This hack should be removed a few years after 2.60.
    1045218207ac_datarootdir_hack=; ac_datarootdir_seen=
     18208
    1045318209ac_sed_dataroot='
    1045418210/datarootdir/ {
     
    1046018216/@infodir@/p
    1046118217/@localedir@/p
    10462 /@mandir@/p'
     18218/@mandir@/p
     18219'
    1046318220case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
    1046418221*datarootdir*) ac_datarootdir_seen=yes;;
    1046518222*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
    10466   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     18223  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
    1046718224$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
    1046818225_ACEOF
     
    1047418231  s&@localedir@&$localedir&g
    1047518232  s&@mandir@&$mandir&g
    10476   s&\\\${datarootdir}&$datarootdir&g' ;;
     18233    s&\\\${datarootdir}&$datarootdir&g' ;;
    1047718234esac
    1047818235_ACEOF
     
    1050218259$ac_datarootdir_hack
    1050318260"
    10504 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
    10505   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     18261eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
     18262  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
     18263$as_echo "$as_me: error: could not create $ac_file" >&2;}
     18264   { (exit 1); exit 1; }; }
    1050618265
    1050718266test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
    10508   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
    10509   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
    10510       "$ac_tmp/out"`; test -z "$ac_out"; } &&
    10511   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    10512 which seems to be undefined.  Please make sure it is defined" >&5
     18267  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
     18268  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     18269  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     18270which seems to be undefined.  Please make sure it is defined." >&5
    1051318271$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    10514 which seems to be undefined.  Please make sure it is defined" >&2;}
    10515 
    10516   rm -f "$ac_tmp/stdin"
     18272which seems to be undefined.  Please make sure it is defined." >&2;}
     18273
     18274  rm -f "$tmp/stdin"
    1051718275  case $ac_file in
    10518   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
    10519   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
     18276  -) cat "$tmp/out" && rm -f "$tmp/out";;
     18277  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
    1052018278  esac \
    10521   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     18279  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
     18280$as_echo "$as_me: error: could not create $ac_file" >&2;}
     18281   { (exit 1); exit 1; }; }
    1052218282 ;;
    1052318283  :H)
     
    1052818288    {
    1052918289      $as_echo "/* $configure_input  */" \
    10530       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    10531     } >"$ac_tmp/config.h" \
    10532       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    10533     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
    10534       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     18290      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
     18291    } >"$tmp/config.h" \
     18292      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
     18293$as_echo "$as_me: error: could not create $ac_file" >&2;}
     18294   { (exit 1); exit 1; }; }
     18295    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
     18296      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    1053518297$as_echo "$as_me: $ac_file is unchanged" >&6;}
    1053618298    else
    1053718299      rm -f "$ac_file"
    10538       mv "$ac_tmp/config.h" "$ac_file" \
    10539         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     18300      mv "$tmp/config.h" "$ac_file" \
     18301        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
     18302$as_echo "$as_me: error: could not create $ac_file" >&2;}
     18303   { (exit 1); exit 1; }; }
    1054018304    fi
    1054118305  else
    1054218306    $as_echo "/* $configure_input  */" \
    10543       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
    10544       || as_fn_error $? "could not create -" "$LINENO" 5
     18307      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
     18308      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
     18309$as_echo "$as_me: error: could not create -" >&2;}
     18310   { (exit 1); exit 1; }; }
    1054518311  fi
    1054618312 ;;
     
    1055218318
    1055318319
    10554 as_fn_exit 0
    10555 _ACEOF
     18320{ (exit 0); exit 0; }
     18321_ACEOF
     18322chmod +x $CONFIG_STATUS
    1055618323ac_clean_files=$ac_clean_files_save
    1055718324
    1055818325test $ac_write_fail = 0 ||
    10559   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
     18326  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
     18327$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
     18328   { (exit 1); exit 1; }; }
    1056018329
    1056118330
     
    1057818347  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    1057918348  # would make configure fail if this is the last instruction.
    10580   $ac_cs_success || as_fn_exit 1
     18349  $ac_cs_success || { (exit 1); exit 1; }
    1058118350fi
    1058218351if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
    10583   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     18352  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
    1058418353$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
    1058518354fi
  • trunk/packages/vizservers/configure.in

    r3335 r3362  
    420420   nanovis/vrmath/Makefile \
    421421   nanovis/imgLoaders/Makefile \
    422    nanovis/transfer-function/Makefile \
    423422   pymolproxy/Makefile \
    424423   vtkvis/Doxyfile \
  • trunk/packages/vizservers/nanovis/Axis.h

    r2972 r3362  
    235235    }
    236236
    237     void getDataLimits(double& min, double& max)
    238     {
    239         min = _valueMin, max = _valueMax;
     237    double dataMin() const
     238    {
     239        return _valueMin;
     240    }
     241
     242    double dataMax() const
     243    {
     244        return _valueMax;
    240245    }
    241246
     
    245250    }
    246251
    247     void min(double min)
    248     {
    249         _reqMin = min;
    250     }
    251 
    252252    double max() const
    253253    {
     
    255255    }
    256256
    257     void max(double max)
    258     {
    259         _reqMax = max;
    260     }
    261 
    262257    void setLimits(double min, double max)
    263258    {
     
    267262    void unsetLimits()
    268263    {
    269         min(NAN), max(NAN);
     264        setLimits(NAN, NAN);
    270265    }
    271266
  • trunk/packages/vizservers/nanovis/AxisRange.h

    r2932 r3362  
    4848    }
    4949
    50     double range() const
     50    double length() const
    5151    {
    5252        return (_max - _min);
  • trunk/packages/vizservers/nanovis/Command.cpp

    r3330 r3362  
    5454#include "Trace.h"
    5555
    56 #if PLANE_CMD
     56#ifdef PLANE_CMD
    5757#include "PlaneRenderer.h"
    5858#endif
     
    6666#include "NvZincBlendeReconstructor.h"
    6767#include "Unirect.h"
     68#include "Volume.h"
    6869#include "VolumeRenderer.h"
    6970
     
    100101static Tcl_ObjCmdProc GridCmd;
    101102static Tcl_ObjCmdProc LegendCmd;
    102 #if PLANE_CMD
     103#ifdef PLANE_CMD
    103104static Tcl_ObjCmdProc PlaneCmd;
    104105#endif
     
    526527
    527528static int
    528 CameraAimOp(ClientData clientData, Tcl_Interp *interp, int objc,
    529             Tcl_Obj *const *objv)
    530 {
    531     float x, y, z;
    532     if ((GetFloatFromObj(interp, objv[2], &x) != TCL_OK) ||
    533         (GetFloatFromObj(interp, objv[3], &y) != TCL_OK) ||
    534         (GetFloatFromObj(interp, objv[4], &z) != TCL_OK)) {
    535         return TCL_ERROR;
    536     }
    537     NanoVis::cam->xAim(x);
    538     NanoVis::cam->yAim(y);
    539     NanoVis::cam->zAim(z);
    540     return TCL_OK;
    541 }
    542 
    543 static int
    544529CameraAngleOp(ClientData clientData, Tcl_Interp *interp, int objc,
    545530              Tcl_Obj *const *objv)
     
    584569
    585570static int
     571CameraPositionOp(ClientData clientData, Tcl_Interp *interp, int objc,
     572                 Tcl_Obj *const *objv)
     573{
     574    float x, y, z;
     575    if ((GetFloatFromObj(interp, objv[2], &x) != TCL_OK) ||
     576        (GetFloatFromObj(interp, objv[3], &y) != TCL_OK) ||
     577        (GetFloatFromObj(interp, objv[4], &z) != TCL_OK)) {
     578        return TCL_ERROR;
     579    }
     580    NanoVis::cam->x(x);
     581    NanoVis::cam->y(y);
     582    NanoVis::cam->z(z);
     583    return TCL_OK;
     584}
     585
     586static int
    586587CameraZoomOp(ClientData clientData, Tcl_Interp *interp, int objc,
    587588             Tcl_Obj *const *objv)
     
    596597
    597598static Rappture::CmdSpec cameraOps[] = {
    598     {"aim",     2, CameraAimOp,      5, 5, "x y z",},
    599599    {"angle",   2, CameraAngleOp,    5, 5, "xAngle yAngle zAngle",},
    600600    {"orient",  1, CameraOrientOp,   6, 6, "qw qx qy qz",},
    601     {"pan",     1, CameraPanOp,      4, 4, "x y",},
     601    {"pan",     2, CameraPanOp,      4, 4, "x y",},
     602    {"pos",     2, CameraPositionOp, 5, 5, "x y z",},
    602603    {"zoom",    1, CameraZoomOp,     3, 3, "factor",},
    603604};
    604605static int nCameraOps = NumCmdSpecs(cameraOps);
    605606
    606 /*
    607  * ----------------------------------------------------------------------
    608  * CLIENT COMMAND:
    609  *   camera aim <x0> <y0> <z0>
    610  *   camera angle <xAngle> <yAngle> <zAngle>
    611  *   camera zoom <factor>
    612  *
    613  * Clients send these commands to manipulate the camera.  The "angle"
    614  * option controls the angle of the camera around the focal point.
    615  * The "zoom" option sets the zoom factor, moving the camera in
    616  * and out.
    617  * ----------------------------------------------------------------------
    618  */
    619607static int
    620608CameraCmd(ClientData clientData, Tcl_Interp *interp, int objc,
     
    631619}
    632620
    633 /*ARGSUSED*/
    634621static int
    635622SnapshotCmd(ClientData clientData, Tcl_Interp *interp, int objc,
     
    800787    }
    801788    Tcl_DStringAppend(&ds, "\n", 1);
    802     result = NanoVis::WriteToStatsFile(Tcl_DStringValue(&ds),
     789#ifdef KEEPSTATS
     790    result = NanoVis::writeToStatsFile(Tcl_DStringValue(&ds),
    803791                                       Tcl_DStringLength(&ds));
     792#else
     793    TRACE("clientinfo: %s", Tcl_DStringValue(&ds));
     794#endif
    804795    Tcl_DStringFree(&ds);
    805796    return result;
     
    11551146        }
    11561147        TRACE("finish loading\n");
    1157         // INSOO
    1158         // TBD..
    1159         // Next identifier available
    1160         float dx0 = -0.5;
    1161         float dy0 = -0.5*volPtr->height/volPtr->width;
    1162         float dz0 = -0.5*volPtr->depth/volPtr->width;
     1148
     1149        Vector3 scale = volPtr->getPhysicalScaling();
     1150        float dx0 = -0.5 * scale.x;
     1151        float dy0 = -0.5 * scale.y;
     1152        float dz0 = -0.5 * scale.z;
    11631153        volPtr->location(Vector3(dx0, dy0, dz0));
     1154
    11641155        int isNew;
    11651156        Tcl_HashEntry *hPtr;
     
    12631254}
    12641255
    1265 /*
    1266  *---------------------------------------------------------------------------
    1267  *
    1268  * VolumeDeleteOp --
    1269  *
    1270  *---------------------------------------------------------------------------
    1271  */
    1272 /*ARGSUSED*/
    12731256static int
    12741257VolumeDeleteOp(ClientData clientData, Tcl_Interp *interp, int objc,
     
    12891272}
    12901273
    1291 /*
    1292  *---------------------------------------------------------------------------
    1293  *
    1294  * VolumeExistsOp --
    1295  *
    1296  *---------------------------------------------------------------------------
    1297  */
    1298 /*ARGSUSED*/
    12991274static int
    13001275VolumeExistsOp(ClientData clientData, Tcl_Interp *interp, int objc,
     
    13121287}
    13131288
    1314 /*
    1315  *---------------------------------------------------------------------------
    1316  *
    1317  * VolumeNamesOp --
    1318  *
    1319  *---------------------------------------------------------------------------
    1320  */
    1321 /*ARGSUSED*/
    13221289static int
    13231290VolumeNamesOp(ClientData clientData, Tcl_Interp *interp, int objc,
     
    14011368
    14021369static int
     1370VolumeShadingAmbientOp(ClientData clientData, Tcl_Interp *interp, int objc,
     1371                       Tcl_Obj *const *objv)
     1372{
     1373    float ambient;
     1374    if (GetFloatFromObj(interp, objv[3], &ambient) != TCL_OK) {
     1375        return TCL_ERROR;
     1376    }
     1377    if (ambient < 0.0f || ambient > 1.0f) {
     1378        WARN("Invalid ambient coefficient requested: %g, should be [0,1]", ambient);
     1379    }
     1380    std::vector<Volume *> ivol;
     1381    if (GetVolumes(interp, objc - 4, objv + 4, &ivol) != TCL_OK) {
     1382        return TCL_ERROR;
     1383    }
     1384    std::vector<Volume *>::iterator iter;
     1385    for (iter = ivol.begin(); iter != ivol.end(); iter++) {
     1386        (*iter)->ambient(ambient);
     1387    }
     1388    return TCL_OK;
     1389}
     1390
     1391static int
    14031392VolumeShadingDiffuseOp(ClientData clientData, Tcl_Interp *interp, int objc,
    14041393                       Tcl_Obj *const *objv)
     
    14421431
    14431432static int
     1433VolumeShadingLight2SideOp(ClientData clientData, Tcl_Interp *interp, int objc,
     1434                          Tcl_Obj *const *objv)
     1435{
     1436    bool twoSidedLighting;
     1437    if (GetBooleanFromObj(interp, objv[3], &twoSidedLighting) != TCL_OK) {
     1438        return TCL_ERROR;
     1439    }
     1440    std::vector<Volume *> ivol;
     1441    if (GetVolumes(interp, objc - 4, objv + 4, &ivol) != TCL_OK) {
     1442        return TCL_ERROR;
     1443    }
     1444    std::vector<Volume *>::iterator iter;
     1445    for (iter = ivol.begin(); iter != ivol.end(); iter++) {
     1446        (*iter)->twoSidedLighting(twoSidedLighting);
     1447    }
     1448    return TCL_OK;
     1449}
     1450
     1451static int
    14441452VolumeShadingOpacityOp(ClientData clientData, Tcl_Interp *interp, int objc,
    14451453                       Tcl_Obj *const *objv)
     
    14701478        return TCL_ERROR;
    14711479    }
    1472     if (specular < 0.0f || specular > 128.0f) {
    1473         WARN("Invalid specular exponent requested: %g, should be [0,128]", specular);
     1480    if (specular < 0.0f || specular > 1.0f) {
     1481        WARN("Invalid specular coefficient requested: %g, should be [0,1]", specular);
    14741482    }
    14751483    std::vector<Volume *> ivol;
     
    14791487    std::vector<Volume *>::iterator iter;
    14801488    for (iter = ivol.begin(); iter != ivol.end(); iter++) {
    1481         (*iter)->specular(specular);
     1489        (*iter)->specularLevel(specular);
     1490    }
     1491    return TCL_OK;
     1492}
     1493
     1494static int
     1495VolumeShadingSpecularExpOp(ClientData clientData, Tcl_Interp *interp, int objc,
     1496                           Tcl_Obj *const *objv)
     1497{
     1498    float specularExp;
     1499    if (GetFloatFromObj(interp, objv[3], &specularExp) != TCL_OK) {
     1500        return TCL_ERROR;
     1501    }
     1502    if (specularExp < 0.0f || specularExp > 128.0f) {
     1503        WARN("Invalid specular exponent requested: %g, should be [0,128]", specularExp);
     1504    }
     1505    std::vector<Volume *> ivol;
     1506    if (GetVolumes(interp, objc - 4, objv + 4, &ivol) != TCL_OK) {
     1507        return TCL_ERROR;
     1508    }
     1509    std::vector<Volume *>::iterator iter;
     1510    for (iter = ivol.begin(); iter != ivol.end(); iter++) {
     1511        (*iter)->specularExponent(specularExp);
    14821512    }
    14831513    return TCL_OK;
     
    15161546
    15171547static Rappture::CmdSpec volumeShadingOps[] = {
    1518     {"diffuse",     1, VolumeShadingDiffuseOp,    4, 0, "value ?indices?",},
    1519     {"isosurface",  1, VolumeShadingIsosurfaceOp, 4, 0, "bool ?indices?",},
    1520     {"opacity",     1, VolumeShadingOpacityOp,    4, 0, "value ?indices?",},
    1521     {"specular",    1, VolumeShadingSpecularOp,   4, 0, "value ?indices?",},
    1522     {"transfunc",   1, VolumeShadingTransFuncOp,  4, 0, "funcName ?indices?",},
     1548    {"ambient",       1, VolumeShadingAmbientOp,     4, 0, "value ?indices?",},
     1549    {"diffuse",       1, VolumeShadingDiffuseOp,     4, 0, "value ?indices?",},
     1550    {"isosurface",    1, VolumeShadingIsosurfaceOp,  4, 0, "bool ?indices?",},
     1551    {"light2side",    1, VolumeShadingLight2SideOp,  4, 0, "bool ?indices?",},
     1552    {"opacity",       1, VolumeShadingOpacityOp,     4, 0, "value ?indices?",},
     1553    {"specularExp",   9, VolumeShadingSpecularExpOp, 4, 0, "value ?indices?",},
     1554    {"specularLevel", 9, VolumeShadingSpecularOp,    4, 0, "value ?indices?",},
     1555    {"transfunc",     1, VolumeShadingTransFuncOp,   4, 0, "funcName ?indices?",},
    15231556};
    15241557static int nVolumeShadingOps = NumCmdSpecs(volumeShadingOps);
     
    16161649}
    16171650
    1618 // ========================= VOLUME END ==================================
    1619 
    16201651static int
    16211652HeightMapDataFollowsOp(ClientData clientData, Tcl_Interp *interp, int objc,
     
    18661897}
    18671898
    1868 
    1869 static int
    1870 HeightMapTopView(ClientData data, Tcl_Interp *interp, int objc,
    1871                 Tcl_Obj *const *objv)
    1872 {
    1873 
    1874     // the variables below should be reassigned
    1875     int image_width = 512;
    1876     int image_height = 512;
    1877     HeightMap* heightmap = 0;
    1878 
    1879     // HELP ME
    1880     // GEORGE
    1881 
    1882     NanoVis::render2dContour(heightmap, image_width, image_height);
    1883     NanoVis::eventuallyRedraw();
    1884     return TCL_OK;
    1885 }
    1886 
    1887 static int
    1888 HeightMapTestOp(ClientData clientData, Tcl_Interp *interp, int objc,
    1889                 Tcl_Obj *const *objv)
    1890 {
    1891     srand((unsigned)time(NULL));
    1892 
    1893     int size = 20 * 20;
    1894     double sigma = 5.0;
    1895     double mean = exp(0.0) / (sigma * sqrt(2.0));
    1896     float* data = (float*) malloc(sizeof(float) * size);
    1897 
    1898     float x, y;
    1899     for (int i = 0; i < size; ++i) {
    1900         x = - 10 + i%20;
    1901         y = - 10 + (i/20);
    1902         data[i] = exp(- (x * y)/(2 * sigma * sigma)) /
    1903             (sigma * sqrt(2.0)) / mean * 2 + 1000;
    1904         //data[i] = ((float)rand()) / RAND_MAX * 1.0;
    1905     }
    1906 
    1907     HeightMap* hmPtr = new HeightMap();
    1908     float minx = 0.0f;
    1909     float maxx = 1.0f;
    1910     float miny = 0.5f;
    1911     float maxy = 3.5f;
    1912     hmPtr->setHeight(minx, miny, maxx, maxy, 20, 20, data);
    1913     hmPtr->transferFunction(NanoVis::getTransfunc("default"));
    1914     hmPtr->setVisible(true);
    1915     hmPtr->setLineContourVisible(true);
    1916     NanoVis::grid->setVisible(true);
    1917     Tcl_HashEntry *hPtr;
    1918     int isNew;
    1919     hPtr = Tcl_CreateHashEntry(&NanoVis::heightmapTable, "test", &isNew);
    1920     if (!isNew) {
    1921         Tcl_AppendResult(interp, "heightmap \"test\" already exists.",
    1922                          (char *)NULL);
    1923         return TCL_ERROR;
    1924     }
    1925     Tcl_SetHashValue(hPtr, hmPtr);
    1926     int image_width = 512;
    1927     int image_height = 512;
    1928 
    1929     NanoVis::render2dContour(hmPtr, image_width, image_height);
    1930 
    1931     return TCL_OK;
    1932 }
    1933 
    19341899static int
    19351900HeightMapTransFuncOp(ClientData clientData, Tcl_Interp *interp, int objc,
     
    19871952    {"polygon",      1, HeightMapPolygonOp,     3, 3, "mode",},
    19881953    {"shading",      1, HeightMapShadingOp,     3, 3, "model",},
    1989     {"test",         2, HeightMapTestOp,        2, 2, "",},
    19901954    {"transfunc",    2, HeightMapTransFuncOp,   3, 0, "name ?heightmap...?",},
    1991 
    1992     // HELP ME
    1993     // GOERGE
    1994     {"topview",      2, HeightMapTopView,     2, 2, "",},
    19951955};
    19961956static int nHeightMapOps = NumCmdSpecs(heightMapOps);
     
    21332093}
    21342094
    2135 #if PLANE_CMD
     2095#ifdef PLANE_CMD
    21362096static int
    21372097PlaneAddOp(ClientData clientData, Tcl_Interp *interp, int objc,
     
    22532213}
    22542214
    2255 #endif  /*PLANE_CMD*/
     2215#endif /*PLANE_CMD*/
    22562216
    22572217/*
     
    23212281    Tcl_CreateObjCommand(interp, "heightmap",   HeightMapCmd,   NULL, NULL);
    23222282    Tcl_CreateObjCommand(interp, "legend",      LegendCmd,      NULL, NULL);
    2323 #if PLANE_CMD
     2283#ifdef PLANE_CMD
    23242284    Tcl_CreateObjCommand(interp, "plane",       PlaneCmd,       NULL, NULL);
    23252285#endif
  • trunk/packages/vizservers/nanovis/ConvexPolygon.cpp

    r3177 r3362  
    2626}
    2727
    28 // Finds the intersection of the line through
    29 // p1 and p2 with the given plane, putting the
    30 // result in intersect.
    31 //
    32 // If the line lies in the plane, an arbitrary
    33 // point on the line is returned.
    34 //
    35 // http://astronomy.swin.edu.au/pbourke/geometry/planeline/
    36 bool
    37 findIntersection(const Vector4& pt1, const Vector4& pt2, const Vector4& plane, Vector4& ret)
    38 {
    39     float a = plane.x;
    40     float b = plane.y;
    41     float c = plane.z;
    42     float d = plane.w;
    43 
    44     Vector4 p1 = pt1;
    45     p1.perspectiveDivide();
    46     float x1 = p1.x;
    47     float y1 = p1.y;
    48     float z1 = p1.z;
    49 
    50     Vector4 p2 = pt2;
    51     p2.perspectiveDivide();
    52     float x2 = p2.x;
    53     float y2 = p2.y;
    54     float z2 = p2.z;
    55 
    56     float uDenom = a * (x1 - x2) + b * (y1 - y2) + c * (z1 - z2);
    57     float uNumer = a * x1 + b * y1 + c * z1 + d;
    58 
    59     if (uDenom == 0){
    60         //plane parallel to line
    61         ERROR("Unexpected code path: ConvexPolygon.cpp\n");
    62         if (uNumer == 0){
    63             ret = p1;
    64             return true;
    65         }
    66         return false;
    67     }
    68 
    69     float u = uNumer / uDenom;
    70     ret.x = x1 + u * (x2 - x1);
    71     ret.y = y1 + u * (y2 - y1);
    72     ret.z = z1 + u * (z2 - z1);
    73     ret.w = 1;
    74     return true;
    75 }
    76 
    7728void
    7829ConvexPolygon::transform(const Mat4x4& mat)
     
    9950}
    10051
    101 void
     52#define SIGN_DIFFERS(x, y) \
     53    ( ((x) < 0.0 && (y) > 0.0) || ((x) > 0.0 && (y) < 0.0) )
     54
     55bool
    10256ConvexPolygon::clip(Plane& clipPlane, bool copyToTexcoord)
    10357{
    10458    if (vertices.size() == 0) {
    105         //ERROR("ConvexPolygon: polygon has no vertices\n"); 
    106         return;
     59        ERROR("polygon has no vertices\n");
     60        return false;
    10761    }
    108    
     62
    10963    VertexVector clippedVerts;
    11064    clippedVerts.reserve(2 * vertices.size());
     
    11266    // The algorithm is as follows: for each vertex
    11367    // in the current poly, check to see which
    114     // half space it is in: clipped or retained.
     68    // half space it is in: clipped (outside) or inside.
    11569    // If the previous vertex was in the other
    116     // half space, find the intersect of that edge
    117     // with the clip plane and add that intersect
     70    // half space, find the intersection of that edge
     71    // with the clip plane and add that intersection
    11872    // point to the new list of vertices.  If the
    119     // current vertex is in the retained half-space,
     73    // current vertex is in the inside half-space,
    12074    // add it to the new list as well.
    12175
    122     Vector4 intersect;
    12376    Vector4 plane = clipPlane.getCoeffs();
    12477
    125     bool prevRetained = isRetained(vertices[0], plane);
    126     if (prevRetained)
    127         clippedVerts.push_back(vertices[0]);
    128 
    129     for (unsigned int i = 1; i < vertices.size(); i++) {
    130         bool retained = isRetained(vertices[i], plane);
    131         if (retained != prevRetained) {
    132             bool found = findIntersection(vertices[i - 1], vertices[i],
    133                                           plane, intersect);
    134             assert(found);
    135             clippedVerts.push_back(intersect);
     78    // This implementation is based on the Mesa 3D library (MIT license)
     79    int v1 = 0;
     80    // dot product >= 0 on/inside half-space, < 0 outside half-space
     81    float dot1 = vertices[v1] * plane;
     82    for (unsigned int i = 1; i <= vertices.size(); i++) {
     83        int v2 = (i == vertices.size()) ? 0 : i;
     84        float dot2 = vertices[v2] * plane;
     85        if (dot1 >= 0.0) {
     86            // on/inside
     87            clippedVerts.push_back(vertices[v1]);
    13688        }
    137         if (retained) {
    138             clippedVerts.push_back(vertices[i]);
     89        if (SIGN_DIFFERS(dot1, dot2)) {
     90            if (dot1 < 0.0) {
     91                // outside -> inside
     92                double t = dot1 / (dot1 - dot2);
     93                clippedVerts.push_back(vlerp(vertices[v1], vertices[v2], t));
     94            } else {
     95                // inside -> outside
     96                double t = dot2 / (dot2 - dot1);
     97                clippedVerts.push_back(vlerp(vertices[v2], vertices[v1], t));
     98            }
    13999        }
    140         prevRetained = retained;
    141     }
    142 
    143     bool retained = isRetained(vertices[0], plane);
    144     if (retained != prevRetained) {
    145         bool found = findIntersection(vertices[vertices.size() - 1],
    146                                       vertices[0], plane, intersect);
    147         assert(found);
    148         clippedVerts.push_back(intersect);
     100        dot1 = dot2;
     101        v1 = v2;
    149102    }
    150103
    151104    vertices.clear();
    152     vertices.insert(vertices.begin(),
    153                     clippedVerts.begin(),
    154                     clippedVerts.end());
    155105
    156     if (copyToTexcoord)
    157         copyVerticesToTexcoords();
     106    if (clippedVerts.size() < 3) {
     107        texcoords.clear();
     108        return false;
     109    } else {
     110        vertices.insert(vertices.begin(),
     111                        clippedVerts.begin(),
     112                        clippedVerts.end());
     113
     114        if (copyToTexcoord)
     115            copyVerticesToTexcoords();
     116
     117        return true;
     118    }
    158119}
     120
     121#undef SIGN_DIFFERS
    159122
    160123void
     
    180143            glVertex4fv((float *)&(vertices[i]));
    181144        }
    182     }
     145    } else {
     146        WARN("No polygons to render\n");
     147    }
    183148}
    184149
     
    199164            glVertex4fv((float *)(&tmp));
    200165        }
     166    } else {
     167        WARN("No polygons to render\n");
    201168    }
    202169}
  • trunk/packages/vizservers/nanovis/ConvexPolygon.h

    r3177 r3362  
    3939
    4040    // Clips the polygon, retaining the portion where ax + by + cz + d >= 0
    41     void clip(Plane& clipPlane, bool copyToTexcoords);
     41    bool clip(Plane& clipPlane, bool copyToTexcoords);
    4242
    4343    void emit(bool useTexture);
     
    6363    }
    6464
    65     bool isRetained(const Vector4& point, const Vector4& plane)
    66     {
    67         return ((point * plane) >= 0); 
    68     }
    69 
    7065    VertexVector vertices;
    7166    TexVector texcoords;
  • trunk/packages/vizservers/nanovis/FlowCmd.cpp

    r2967 r3362  
    6565
    6666Rappture::SwitchSpec FlowCmd::_switches[] = {
     67    {Rappture::SWITCH_FLOAT, "-ambient", "value",
     68     offsetof(FlowValues, ambient), 0},
    6769    {Rappture::SWITCH_BOOLEAN, "-arrows", "boolean",
    6870     offsetof(FlowValues, showArrows), 0},
     
    8183    {Rappture::SWITCH_BOOLEAN, "-slice", "boolean",
    8284     offsetof(FlowValues, sliceVisible), 0},
    83     {Rappture::SWITCH_FLOAT, "-specular", "value",
     85    {Rappture::SWITCH_FLOAT, "-specularExp", "value",
     86     offsetof(FlowValues, specularExp), 0},
     87    {Rappture::SWITCH_FLOAT, "-specularLevel", "value",
    8488     offsetof(FlowValues, specular), 0},
    8589    {Rappture::SWITCH_CUSTOM, "-transferfunction", "name",
     
    196200    glDisable(GL_TEXTURE_2D);
    197201    glDisable(GL_BLEND);
    198     //glEnable(GL_BLEND);
    199202
    200203    glMatrixMode(GL_MODELVIEW);
     
    204207    glTranslatef(origin.x, origin.y, origin.z);
    205208
    206     double sx, sy, sz;
    207     sz = sy = sx = 1.0;
    208     sy = volPtr->height / (double)volPtr->width;
    209     if (volPtr->depth > 0.0) {
    210         sz = volPtr->depth  / (double)volPtr->width;
    211     }
    212     glScaled(sx, sy, sz);
     209    Vector3 scale = volPtr->getPhysicalScaling();
     210    glScaled(scale.x, scale.y, scale.z);
    213211
    214212    Vector3 min, max;
    215 
    216     min = volPtr->getPhysicalBBoxMin();
    217     max = volPtr->getPhysicalBBoxMax();
     213    min.x = volPtr->xAxis.min();
     214    min.y = volPtr->yAxis.min();
     215    min.z = volPtr->zAxis.min();
     216    max.x = volPtr->xAxis.max();
     217    max.y = volPtr->yAxis.max();
     218    max.z = volPtr->zAxis.max();
    218219
    219220    TRACE("box is %g,%g %g,%g %g,%g\n",
     
    227228    x0 = y0 = z0 = 0.0f;
    228229    x1 = y1 = z1 = 0.0f;
    229     if (max.y  > min.y) {
     230    if (max.x > min.x) {
     231        x0 = (_sv.corner1.x - min.x) / (max.x - min.x);
     232        x1 = (_sv.corner2.x - min.x) / (max.x - min.x);
     233    }
     234    if (max.y > min.y) {
    230235        y0 = (_sv.corner1.y - min.y) / (max.y - min.y);
    231236        y1 = (_sv.corner2.y - min.y) / (max.y - min.y);
     
    234239        z0 = (_sv.corner1.z - min.z) / (max.z - min.z);
    235240        z1 = (_sv.corner2.z - min.z) / (max.z - min.z);
    236     }
    237     if (max.x > min.x) {
    238         x0 = (_sv.corner1.x - min.x) / (max.x - min.x);
    239         x1 = (_sv.corner2.x - min.x) / (max.x - min.x);
    240241    }
    241242    TRACE("rendering box %g,%g %g,%g %g,%g\n", x0, x1, y0, y1, z0, z1);
     
    554555    }
    555556
    556     double width, height, depth;
    557     width  = NanoVis::xMax - NanoVis::xMin;
    558     height = NanoVis::yMax - NanoVis::yMin;
    559     depth  = NanoVis::zMax - NanoVis::zMin;
    560 
    561     Vector3 loc = _volPtr->location();
    562 
    563     _fieldPtr->setVectorField(_volPtr, loc,
    564                               1.0f,
    565                               height / width,
    566                               depth  / width,
     557    Vector3 scale = volPtr->getPhysicalScaling();
     558    Vector3 location = _volPtr->location();
     559
     560    _fieldPtr->setVectorField(_volPtr,
     561                              location,
     562                              scale.x,
     563                              scale.y,
     564                              scale.z,
    567565                              NanoVis::magMax);
    568566
    569567    if (NanoVis::licRenderer != NULL) {
    570568        NanoVis::licRenderer->
    571             setVectorField(_volPtr->id, loc,
    572                            _volPtr->aspectRatioWidth,
    573                            _volPtr->aspectRatioHeight,
    574                            _volPtr->aspectRatioDepth,
     569            setVectorField(_volPtr->textureID(),
     570                           location,
     571                           scale.x,
     572                           scale.y,
     573                           scale.z,
    575574                           _volPtr->wAxis.max());
    576575        SetCurrentPosition();
     
    581580    if (NanoVis::velocityArrowsSlice != NULL) {
    582581        NanoVis::velocityArrowsSlice->
    583             setVectorField(_volPtr->id, loc,
    584                            _volPtr->aspectRatioWidth,
    585                            _volPtr->aspectRatioHeight,
    586                            _volPtr->aspectRatioDepth,
     582            setVectorField(_volPtr->textureID(),
     583                           location,
     584                           scale.x,
     585                           scale.y,
     586                           scale.z,
    587587                           _volPtr->wAxis.max());
    588588        NanoVis::velocityArrowsSlice->axis(_sv.slicePos.axis);
     
    595595         particlesPtr != NULL;
    596596         particlesPtr = NextParticles(&partIter)) {
    597         particlesPtr->setVectorField(_volPtr, loc,
    598                                      _volPtr->aspectRatioWidth,
    599                                      _volPtr->aspectRatioHeight,
    600                                      _volPtr->aspectRatioDepth,
     597        particlesPtr->setVectorField(_volPtr,
     598                                     location,
     599                                     scale.x,
     600                                     scale.y,
     601                                     scale.z,
    601602                                     _volPtr->wAxis.max());
    602603    }
     
    663664    volPtr->yAxis.setRange(_dataPtr->yMin(), _dataPtr->yMax());
    664665    volPtr->zAxis.setRange(_dataPtr->zMin(), _dataPtr->zMax());
    665     volPtr->wAxis.setRange(NanoVis::magMin, NanoVis::magMax);
    666 
    667     Vector3 physicalMin(NanoVis::xMin, NanoVis::yMin, NanoVis::zMin);
    668     Vector3 physicalMax(NanoVis::xMax, NanoVis::yMax, NanoVis::zMax);
     666
    669667    TRACE("min=%g %g %g max=%g %g %g mag=%g %g\n",
    670668          NanoVis::xMin, NanoVis::yMin, NanoVis::zMin,
    671669          NanoVis::xMax, NanoVis::yMax, NanoVis::zMax,
    672670          NanoVis::magMin, NanoVis::magMax);
    673     volPtr->setPhysicalBBox(physicalMin, physicalMax);
     671
    674672    volPtr->disableCutplane(0);
    675673    volPtr->disableCutplane(1);
     
    681679    volPtr->outline(_sv.showOutline);
    682680    volPtr->opacityScale(_sv.opacity);
    683     volPtr->specular(_sv.specular);
     681    volPtr->ambient(_sv.ambient);
    684682    volPtr->diffuse(_sv.diffuse);
     683    volPtr->specularLevel(_sv.specular);
     684    volPtr->specularExponent(_sv.specularExp);
    685685    volPtr->visible(_sv.showVolume);
    686     float dx0 = -0.5;
    687     float dy0 = -0.5*volPtr->height/volPtr->width;
    688     float dz0 = -0.5*volPtr->depth/volPtr->width;
     686
     687    Vector3 volScaling = volPtr->getPhysicalScaling();
     688    float dx0 = -0.5 * volScaling.x;
     689    float dy0 = -0.5 * volScaling.y;
     690    float dz0 = -0.5 * volScaling.z;
    689691    volPtr->location(Vector3(dx0, dy0, dz0));
     692
    690693    Volume::updatePending = true;
    691694    return volPtr;
     
    839842        return TCL_ERROR;
    840843    }
     844    TRACE("nx = %d ny = %d nz = %d\n", dataPtr->xNum(), dataPtr->yNum(), dataPtr->zNum());
     845    TRACE("x0 = %lg y0 = %lg z0 = %lg\n", dataPtr->xMin(), dataPtr->yMin(), dataPtr->zMin());
     846    TRACE("lx = %lg ly = %lg lz = %lg\n",
     847          dataPtr->xMax() - dataPtr->xMin(),
     848          dataPtr->yMax() - dataPtr->yMin(),
     849          dataPtr->zMax() - dataPtr->zMin());
     850    TRACE("dx = %lg dy = %lg dz = %lg\n",
     851          dataPtr->xNum() > 1 ? (dataPtr->xMax() - dataPtr->xMin())/(dataPtr->xNum()-1) : 0,
     852          dataPtr->yNum() > 1 ? (dataPtr->yMax() - dataPtr->yMin())/(dataPtr->yNum()-1) : 0,
     853          dataPtr->zNum() > 1 ? (dataPtr->zMax() - dataPtr->zMin())/(dataPtr->zNum()-1) : 0);
     854    TRACE("magMin = %lg magMax = %lg\n",
     855          dataPtr->magMin(), dataPtr->magMax());
    841856    flowPtr->data(dataPtr);
    842857    {
  • trunk/packages/vizservers/nanovis/FlowCmd.h

    r3177 r3362  
    115115    {
    116116        _rendererPtr->
    117             setVectorField(volPtr->id,
     117            setVectorField(volPtr->textureID(),
    118118                           location,
    119119                           scaleX,
     
    207207    int showOutline;
    208208    int isHidden;
    209     float diffuse;  ///< Diffuse volume shading
    210     float specular; ///< Specular volume shading
    211     float opacity;  ///< Volume opacity
     209    float ambient;     ///< Ambient volume shading
     210    float diffuse;     ///< Diffuse volume shading
     211    float specular;    ///< Specular level volume shading
     212    float specularExp; ///< Specular exponent volume shading
     213    float opacity;     ///< Volume opacity scaling
    212214};
    213215
  • trunk/packages/vizservers/nanovis/Grid.cpp

    r2953 r3362  
    77
    88#include "Grid.h"
     9#include "Trace.h"
    910
    1011#define NUMDIGITS       6
     
    3839#endif
    3940
     41    glMatrixMode(GL_MODELVIEW);
    4042    glPushMatrix();
    41 #ifdef notdef
    42     glScalef(xAxis.scale(),
    43              yAxis.range() / xAxis.range(),
    44              zAxis.range() / xAxis.range());
    45 #endif
    46 
    47     glTranslatef(-0.5f, -0.5f, -0.5f);
     43
     44    double xDataRange = xAxis.dataMax() - xAxis.dataMin();
     45    double yDataRange = yAxis.dataMax() - yAxis.dataMin();
     46    double zDataRange = zAxis.dataMax() - zAxis.dataMin();
     47
     48    double paspectX = 1.0f;
     49    double paspectY = yDataRange / xDataRange;
     50    double paspectZ = zDataRange / xDataRange;
     51 
     52    double xscale = xAxis.range() / xDataRange;
     53    double yscale = yAxis.range() / xDataRange;
     54    double zscale = zAxis.range() / xDataRange;
     55
     56    double xoffset = (xAxis.min() - xAxis.dataMin()) * xAxis.scale();
     57    double yoffset = (yAxis.min() - yAxis.dataMin()) * yAxis.scale();
     58    double zoffset = (zAxis.min() - zAxis.dataMin()) * zAxis.scale();
     59
     60    TRACE("Axis ranges: %g %g %g\n", xAxis.range(), yAxis.range(), zAxis.range());
     61    TRACE("Axis scales: %g %g %g\n", xAxis.scale(), yAxis.scale(), zAxis.scale());
     62    TRACE("Axis min/max: %g,%g %g,%g %g,%g\n",
     63          xAxis.min(), xAxis.max(),
     64          yAxis.min(), yAxis.max(),
     65          zAxis.min(), zAxis.max());
     66    TRACE("Axis vmin/vmax: %g,%g %g,%g %g,%g\n",
     67          xAxis.dataMin(), xAxis.dataMax(),
     68          yAxis.dataMin(), yAxis.dataMax(),
     69          zAxis.dataMin(), zAxis.dataMax());
     70    TRACE("paspect: %g %g %g\n", paspectX, paspectY, paspectZ);
     71    TRACE("scale: %g %g %g\n", xscale, yscale, zscale);
     72
     73    glTranslatef(-0.5f * paspectX, -0.5f * paspectY, -0.5f * paspectZ);
     74    glScalef(xscale, yscale, zscale);
     75    glTranslatef(xoffset, yoffset, zoffset);
     76
    4877    glLineWidth(2.0f);
    4978    glColor4f(_axisColor.red, _axisColor.green, _axisColor.blue,
  • trunk/packages/vizservers/nanovis/HeightMap.cpp

    r2956 r3362  
    1212double HeightMap::valueMax = 1.0;
    1313
    14 #define TOPCONTOUR      0
    15 //#define TOPCONTOUR    1
    1614HeightMap::HeightMap() :
    1715    _vertexBufferObjectID(0),
     
    1917    _vertexCount(0),
    2018    _contour(0),
    21     _topContour(0),
    2219    _tfPtr(0),
    2320    _opacity(0.5f),
     
    2623    _contourColor(1.0f, 0.0f, 0.0f),
    2724    _contourVisible(false),
    28     _topContourVisible(true),
    2925    _visible(false),
    3026    _scale(1.0f, 1.0f, 1.0f),
     
    140136        }
    141137
    142 #if TOPCONTOUR
    143         if (_topContourVisible) {
    144             glDisable(GL_BLEND);
    145             glDisable(GL_TEXTURE_2D);
    146             glColor4f(_contourColor.x, _contourColor.y, _contourColor.z,
    147                       _opacity /*1.0f*/);
    148             //glDepthRange (0.0, 0.999);
    149             _topContour->render();
    150         }
    151 #endif
    152138        glDepthRange (0.0, 1.0);
    153139    }
     
    303289    _contour = lineFilter.create(0.0f, 1.0f, 10, heights, xCount, yCount);
    304290
    305 #if TOPCONTOUR
    306     ContourLineFilter topLineFilter;
    307     topLineFilter.setHeightTop(true);
    308     _topContour = topLineFilter.create(0.0f, 1.0f, 10, heights, xCount, yCount);
    309 #endif
    310 
    311291    //if (heightMap)
    312292    //{
     
    396376    //lineFilter.transferFunction(_tfPtr);
    397377    _contour = lineFilter.create(0.0f, 1.0f, 10, map, xNum, yNum);
    398    
    399 #if TOPCONTOUR
    400     ContourLineFilter topLineFilter;
    401     topLineFilter.setHeightTop(true);
    402     _topContour = topLineFilter.create(0.0f, 1.0f, 10, map, xNum, yNum);
    403 #endif
     378
    404379    this->createIndexBuffer(xNum, yNum, heights);
    405380    delete [] map;
     
    495470    _contour = lineFilter.create(0.0f, 1.0f, 10, vertices, _xNum, _yNum);
    496471   
    497 #if TOPCONTOUR
    498     ContourLineFilter topLineFilter;
    499     topLineFilter.setHeightTop(true);
    500     _topContour = topLineFilter.create(0.0f, 1.0f, 10, vertices, _xNum, _yNum);
    501 #endif
    502472    this->createIndexBuffer(_xNum, _yNum, normHeights);
    503473    delete [] normHeights;
    504474    delete [] vertices;
    505475}
    506 
    507 void
    508 HeightMap::renderTopview(graphics::RenderContext* renderContext,
    509                          int render_width, int render_height)
    510 {
    511     glClear(GL_COLOR_BUFFER_BIT);
    512     glPushAttrib(GL_VIEWPORT_BIT);
    513     glViewport(0, 0, render_width, render_height);
    514     glMatrixMode(GL_PROJECTION);
    515     glPushMatrix();
    516     glLoadIdentity();
    517     //gluOrtho2D(0, render_width, 0, render_height);
    518     glOrtho(-.5, .5, -.5, .5, -50, 50);
    519     glMatrixMode(GL_MODELVIEW);
    520     glPushMatrix();
    521     glLoadIdentity();
    522 
    523     glTranslatef(0.0, 0.0, -10.0);
    524 
    525     // put camera rotation and translation
    526     //glScalef(1 / _scale.x, 1 / _scale.y , 1 / _scale.z);
    527 
    528     if (renderContext->getCullMode() == graphics::RenderContext::NO_CULL) {
    529         glDisable(GL_CULL_FACE);
    530     } else {
    531         glEnable(GL_CULL_FACE);
    532         glCullFace((GLuint) renderContext->getCullMode());
    533     }
    534 
    535     glPolygonMode(GL_FRONT_AND_BACK, (GLuint) renderContext->getPolygonMode());
    536     glShadeModel((GLuint) renderContext->getShadingModel());
    537 
    538     glPushMatrix();
    539 
    540     //glTranslatef(-_centerPoint.x, -_centerPoint.y, -_centerPoint.z);
    541 
    542     //glScalef(0.01, 0.01, 0.01f);
    543     glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
    544     glTranslatef(-_centerPoint.x, -_centerPoint.y, -_centerPoint.z);
    545     if (_contour != NULL) {
    546         glDepthRange (0.001, 1.0);
    547     }
    548        
    549     glEnable(GL_DEPTH_TEST);
    550 
    551     glEnable(GL_BLEND);
    552     glEnable(GL_TEXTURE_2D);
    553     if (_vertexBufferObjectID)
    554     {
    555         TRACE("TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT\n");
    556         glColor3f(1.0f, 1.0f, 1.0f);
    557         glShadeModel(GL_SMOOTH);
    558         glEnable(GL_BLEND);
    559         glEnableClientState(GL_VERTEX_ARRAY);
    560         glDisableClientState(GL_COLOR_ARRAY);
    561         glDisableClientState(GL_INDEX_ARRAY);
    562         glDisableClientState(GL_NORMAL_ARRAY);
    563        
    564         if (_tfPtr != NULL) {
    565             _shader->bind();
    566 
    567             _shader->setFPTextureParameter("tf", _tfPtr->id());
    568 
    569             glEnable(GL_TEXTURE_1D);
    570             _tfPtr->getTexture()->activate();
    571 
    572             glEnableClientState(GL_TEXTURE_COORD_ARRAY);
    573         } else {
    574             glDisableClientState(GL_TEXTURE_COORD_ARRAY);
    575         }
    576 
    577         glBindBuffer(GL_ARRAY_BUFFER, _vertexBufferObjectID);
    578         glVertexPointer(3, GL_FLOAT, 12, 0);
    579 
    580         glBindBuffer(GL_ARRAY_BUFFER, _texcoordBufferObjectID);
    581         glTexCoordPointer(3, GL_FLOAT, 12, 0);
    582 
    583 #define _TRIANGLES_
    584 #ifdef _TRIANGLES_
    585         glDrawElements(GL_TRIANGLES, _indexCount, GL_UNSIGNED_INT,
    586                        _indexBuffer);
    587 #else
    588         glDrawElements(GL_QUADS, _indexCount, GL_UNSIGNED_INT,
    589                        _indexBuffer);
    590 #endif
    591 
    592         glBindBuffer(GL_ARRAY_BUFFER, 0);
    593 
    594         glDisableClientState(GL_VERTEX_ARRAY);
    595         if (_tfPtr != NULL) {
    596             _tfPtr->getTexture()->deactivate();
    597             glDisableClientState(GL_TEXTURE_COORD_ARRAY);
    598 
    599             _shader->disableFPTextureParameter("tf");
    600             _shader->unbind();
    601         }
    602     }
    603 
    604     glShadeModel(GL_FLAT);
    605     glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
    606 
    607     if (_contour != NULL) {
    608         if (_contourVisible) {
    609             glDisable(GL_BLEND);
    610             glDisable(GL_TEXTURE_2D);
    611             glColor4f(_contourColor.x, _contourColor.y, _contourColor.z, 1.0f);
    612             glDepthRange (0.0, 0.999);
    613             _contour->render();
    614             glDepthRange (0.0, 1.0);
    615         }
    616 
    617 #if TOPCONTOUR
    618         if (_topContourVisible) {
    619             glDisable(GL_BLEND);
    620             glDisable(GL_TEXTURE_2D);
    621             glColor4f(_contourColor.x, _contourColor.y, _contourColor.z, 1.0f);
    622             //glDepthRange (0.0, 0.999);
    623             _topContour->render();
    624             //glDepthRange (0.0, 1.0);
    625         }
    626 #endif
    627     }
    628    
    629     glPopMatrix();
    630     glPopMatrix();
    631 
    632     glMatrixMode(GL_PROJECTION);
    633     glPushMatrix();
    634     glMatrixMode(GL_MODELVIEW);
    635 
    636     glPopAttrib();
    637 }
  • trunk/packages/vizservers/nanovis/HeightMap.h

    r2956 r3362  
    2828
    2929    void render(graphics::RenderContext *renderContext);
    30 
    31     void renderTopview(graphics::RenderContext *renderContext,
    32                        int render_width, int render_height);
    3330
    3431    /**
     
    9491    }
    9592
    96     void setTopLineContourVisible(bool visible)
    97     {
    98         _topContourVisible = visible;
    99     }
    100 
    10193    void opacity(float opacity)
    10294    {
     
    134126    int _vertexCount;
    135127    R2Geometry *_contour;
    136     R2Geometry *_topContour;
    137128    TransferFunction *_tfPtr;
    138129    float _opacity;
     
    143134
    144135    bool _contourVisible;
    145     bool _topContourVisible;
    146136    bool _visible;
    147137
  • trunk/packages/vizservers/nanovis/Makefile.in

    r2974 r3362  
    155155shaders         = \
    156156                $(srcdir)/shaders/common.cg \
     157                $(srcdir)/shaders/cutplane_fp.cg \
     158                $(srcdir)/shaders/cutplane_vp.cg \
    157159                $(srcdir)/shaders/heightcolor.cg \
    158160                $(srcdir)/shaders/one_plane.cg \
     
    168170
    169171ifdef NOTDEF
    170 OBJS +=         DataLoader.o \
    171                 NvFlowVisRenderer.o \
     172OBJS +=         NvFlowVisRenderer.o \
    172173                ParticleEmitter.o \
    173174                ParticleSystem.o \
    174                 ParticleSystemFactory.o \
    175                 Renderable.o \
    176                 ScreenSnapper.o \
    177                 Sphere.o
     175                ParticleSystemFactory.o
    178176
    179177shaders +=      $(srcdir)/shaders/passthrough.cg \
     
    195193endif
    196194
    197 .PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath transfer-function
     195.PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath
    198196
    199197all: newmat11 R2 imgloaders vrmath nanovis
     
    226224RpAVTranslate.o: $(srcdir)/RpAVTranslate.cpp
    227225        $(CXX) -c $(CXX_SWITCHES) $(FF_INC_SPEC) $<
    228 
    229 client: Socket.o ClientSocket.o RenderClient.o Event.o
    230         $(CXX) $(CXX_SWITCHES) -o $@ $^ $(LIBS)
    231 
    232 Socket.o: socket/Socket.cpp socket/Socket.h
    233         $(CXX) $(CXX_SWITCHES) -o $@ -c $<
    234 ClientSocket.o: socket/ClientSocket.cpp socket/ClientSocket.h
    235         $(CXX) $(CXX_SWITCHES) -o $@ -c $<
    236 RenderClient.o: socket/RenderClient.cpp socket/RenderClient.h
    237         $(CXX) $(CXX_SWITCHES) -o $@ -c $<
    238226
    239227install-resources:
     
    273261CmdProc.o: CmdProc.cpp CmdProc.h
    274262Color.o: Color.cpp Color.h
    275 Command.o: Command.cpp nanovis.h $(AUXSRC) CmdProc.h Trace.h PlaneRenderer.h PointSet.h dxReader.h Grid.h HeightMap.h NvCamera.h NvZincBlendeReconstructor.h Unirect.h VolumeRenderer.h
     263Command.o: Command.cpp nanovis.h $(AUXSRC) CmdProc.h Trace.h PlaneRenderer.h PointSet.h dxReader.h Grid.h HeightMap.h NvCamera.h NvZincBlendeReconstructor.h Unirect.h Volume.h VolumeRenderer.h
    276264ContourLineFilter.o: ContourLineFilter.cpp ContourLineFilter.h
    277265ConvexPolygon.o: ConvexPolygon.cpp ConvexPolygon.h Vector4.h Mat4x4.h Plane.h
    278 DataLoader.o: DataLoader.cpp DataLoader.h
    279266Event.o: Event.cpp Event.h
    280 FlowCmd.o: FlowCmd.cpp FlowCmd.h Switch.h Trace.h TransferFunction.h nanovis.h CmdProc.h NvLIC.h Unirect.h
     267FlowCmd.o: FlowCmd.cpp FlowCmd.h Switch.h Trace.h TransferFunction.h nanovis.h CmdProc.h NvLIC.h Unirect.h Volume.h VelocityArrowsSlice.h
    281268GradientFilter.o: GradientFilter.cpp GradientFilter.h
    282269Grid.o: Grid.cpp Grid.h Axis.h Chain.h
     
    312299RenderVertexArray.o: RenderVertexArray.cpp RenderVertexArray.h
    313300RpAVTranslate.o: RpAVTranslate.cpp RpAVTranslate.h nvconf.h
    314 ScreenSnapper.o: ScreenSnapper.cpp ScreenSnapper.h
    315 Sphere.o: Sphere.cpp Sphere.h
    316301Switch.o: Switch.cpp Switch.h
    317302Texture1D.o: Texture1D.cpp Texture1D.h
     
    323308VelocityArrowsSlice.o: VelocityArrowsSlice.cpp VelocityArrowsSlice.h
    324309Volume.o: Volume.cpp Volume.h $(AUXSRC)
    325 VolumeInterpolator.o: VolumeInterpolator.cpp VolumeInterpolator.h
     310VolumeInterpolator.o: VolumeInterpolator.cpp VolumeInterpolator.h Volume.h
    326311VolumeRenderer.o: VolumeRenderer.cpp VolumeRenderer.h
    327312ZincBlendeVolume.o: ZincBlendeVolume.cpp ZincBlendeVolume.h $(AUXSRC)
  • trunk/packages/vizservers/nanovis/NvCamera.cpp

    r3177 r3362  
    1616#include <stdio.h>
    1717#include <math.h>
     18#include <float.h>
    1819
    1920#include <GL/glew.h>
     
    3839
    3940NvCamera::NvCamera(int startx, int starty, int w, int h,
    40                    float loc_x, float loc_y, float loc_z,
    41                    float target_x, float target_y, float target_z,
    42                    float angle_x, float angle_y, float angle_z) :
     41                   float loc_x, float loc_y, float loc_z) :
    4342    _location(loc_x, loc_y, loc_z),
    44     _target(target_x, target_y, target_z),
    45     _angle(angle_x, angle_y, angle_z),
     43    _fov(30.0),
     44    _near(0.1),
     45    _far(50.0),
    4646    _width(w),
    4747    _height(h),
     
    4949    _startY(starty)
    5050{
     51}
     52
     53void
     54NvCamera::setClippingRange(const Vector3& bboxMin, const Vector3& bboxMax)
     55{
     56    // Transform bounds by modelview matrix
     57    GLfloat mv[16];
     58    glGetFloatv(GL_MODELVIEW_MATRIX, mv);
     59    Mat4x4 modelView = Mat4x4(mv);
     60    Vector4 bboxEye[8];
     61    bboxEye[0] = Vector4(bboxMin.x, bboxMin.y, bboxMin.z, 1);
     62    bboxEye[1] = Vector4(bboxMax.x, bboxMin.y, bboxMin.z, 1);
     63    bboxEye[2] = Vector4(bboxMin.x, bboxMax.y, bboxMin.z, 1);
     64    bboxEye[3] = Vector4(bboxMin.x, bboxMin.y, bboxMax.z, 1);
     65    bboxEye[4] = Vector4(bboxMax.x, bboxMax.y, bboxMin.z, 1);
     66    bboxEye[5] = Vector4(bboxMax.x, bboxMin.y, bboxMax.z, 1);
     67    bboxEye[6] = Vector4(bboxMin.x, bboxMax.y, bboxMax.z, 1);
     68    bboxEye[7] = Vector4(bboxMax.x, bboxMax.y, bboxMax.z, 1);
     69    double zMin = DBL_MAX;
     70    double zMax = -DBL_MAX;
     71    for (int i = 0; i < 8; i++) {
     72        Vector4 eyeVert = modelView.transform(bboxEye[i]);
     73        if (eyeVert.z < zMin) zMin = eyeVert.z;
     74        if (eyeVert.z > zMax) zMax = eyeVert.z;
     75    }
     76    if (zMax > 0.0) {
     77        zMax = -.001;
     78    }
     79    if (zMin > 0.0) {
     80        zMin = -50.0;
     81    }
     82    _near = -zMax;
     83    _far = -zMin;
     84
     85    TRACE("Resetting camera clipping range to: near: %g, far: %g\n", _near, _far);
     86
     87    glMatrixMode(GL_PROJECTION);
     88    glLoadIdentity();
     89    gluPerspective(_fov,
     90                   (GLdouble)(_width - _startX)/(GLdouble)(_height - _startY),
     91                   _near, _far);
     92    glMatrixMode(GL_MODELVIEW);
    5193}
    5294
     
    58100    glMatrixMode(GL_PROJECTION);
    59101    glLoadIdentity();
    60     gluPerspective(30,
     102    gluPerspective(_fov,
    61103                   (GLdouble)(_width - _startX)/(GLdouble)(_height - _startY),
    62                    0.1, 50.0);
     104                   _near, _far);
    63105
    64106    glMatrixMode(GL_MODELVIEW);
    65107    glLoadIdentity();
    66108
    67 #ifndef OLD_CAMERA
    68109    glTranslatef(-_location.x, -_location.y, -_location.z);
    69110    glMultMatrixf((const GLfloat *)_cameraMatrix.get());
    70 #else
    71 
    72     gluLookAt(_location.x, _location.y, _location.z,
    73               _target.x, _target.y, _target.z,
    74               0., 1., 0.);
    75 
    76     if (_angle.x != 0.0f)
    77         glRotated(_angle.x, 1., 0., 0.);
    78     if (_angle.y != 0.0f)
    79         glRotated(_angle.y, 0., 1., 0.);
    80     if (_angle.z != 0.0f)
    81         glRotated(_angle.z, 0., 0., 1.);
    82 #endif
    83111}
    84112
     
    90118    _cameraMatrix.makeRotation(rot);
    91119    _cameraMatrix.transpose();
    92     _angle.set(0, 0, 0);
    93120    TRACE("Set rotation to quat: %g %g %g %g\n",
    94121          quat[0], quat[1], quat[2], quat[3]);
    95122}
    96123
    97 void NvCamera::rotate(float angle_x, float angle_y, float angle_z)
     124void NvCamera::rotate(float angleX, float angleY, float angleZ)
    98125{
    99 #ifdef OLD_CAMERA
    100     _angle = Vector3(angle_x, angle_y, angle_z);
    101 #else
    102     angle_x = -angle_x;
    103     angle_y = angle_y - 180.;
    104     _angle = Vector3(angle_x, angle_y, angle_z);
     126    angleX = -angleX;
     127    angleY = angleY - 180.;
    105128
    106     _cameraMatrix.makeRotation(1, 0, 0, deg2rad(_angle.x));
     129    _cameraMatrix.makeRotation(1, 0, 0, deg2rad(angleX));
    107130    vrMatrix4x4f mat;
    108     mat.makeRotation(0, 1, 0, deg2rad(_angle.y));
     131    mat.makeRotation(0, 1, 0, deg2rad(angleY));
    109132    _cameraMatrix.multiply(mat);
    110     mat.makeRotation(0, 0, 1, deg2rad(_angle.z));
     133    mat.makeRotation(0, 0, 1, deg2rad(angleZ));
    111134    _cameraMatrix.multiply(mat);
    112135    //_cameraMatrix.transpose();
    113 #endif
     136
    114137    TRACE("Set rotation to angles: %g %g %g\n",
    115           _angle.x, _angle.y, _angle.z);
     138          angleX, angleY, angleZ);
    116139}
    117 
    118 void NvCamera::rotate(const Vector3& angle)
    119 {
    120 #ifdef OLD_CAMERA
    121     _angle = angle;
    122 #else
    123     _angle.x = -angle.x;
    124     _angle.y = angle.y - 180.;
    125     _angle.z = angle.z;
    126 
    127     _cameraMatrix.makeRotation(1, 0, 0, deg2rad(_angle.x));
    128     vrMatrix4x4f mat;
    129     mat.makeRotation(0, 1, 0, deg2rad(_angle.y));
    130     _cameraMatrix.multiply(mat);
    131     mat.makeRotation(0, 0, 1, deg2rad(_angle.z));
    132     _cameraMatrix.multiply(mat);
    133     //_cameraMatrix.transpose();
    134 #endif
    135     TRACE("Set rotation to angles: %g %g %g\n",
    136           _angle.x, _angle.y, _angle.z);
    137 }
  • trunk/packages/vizservers/nanovis/NvCamera.h

    r3177 r3362  
    2626public:
    2727    NvCamera(int startx, int starty, int w, int h,
    28              float loc_x, float loc_y, float loc_z,
    29              float target_x, float target_y, float target_z,
    30              float angle_x, float angle_y, float angle_z);
     28             float loc_x, float loc_y, float loc_z);
    3129
    3230    ~NvCamera()
     
    6462    }
    6563
    66     //move location of target
    67     void xAim(float x)
    68     {
    69         _target.x = x;
    70     }
    71 
    72     float xAim() const
    73     {
    74         return _target.x;
    75     }
    76 
    77     void yAim(float y)
    78     {
    79         _target.y = y;
    80     }
    81 
    82     float yAim() const
    83     {
    84         return _target.y;
    85     }
    86 
    87     void zAim(float z)
    88     {
    89         _target.z = z;
    90     }
    91 
    92     float zAim() const
    93     {
    94         return _target.z;
    95     }
    96 
    9764    void rotate(double *quat);
    9865
    9966    void rotate(float angle_x, float angle_y, float angle_z);
    10067
    101     void rotate(const Vector3& angle);
     68    void fov(float fov)
     69    {
     70        _fov = fov;
     71    }
    10272
    103     Vector3 rotate() const
    104     { 
    105         return _angle;
     73    float fov() const
     74    {
     75        return _fov;
    10676    }
     77
     78    void setClippingRange(float near, float far)
     79    {
     80        _near = near;
     81        _far = far;
     82    }
     83
     84    void setClippingRange(const Vector3& bboxMin, const Vector3& bboxMax);
    10785
    10886    void setScreenSize(int sx, int sy, int w, int h)
     
    123101    /// Location of the camera in the scene
    124102    Vector3 _location;
    125     /**
    126      * \brief Location the camera is looking at
    127      *
    128      * Location and target: two points define the line-of-sight
    129      */
    130     Vector3 _target;
    131     /// rotation angles of camera along x, y, z
    132     Vector3 _angle;
    133 
     103    /// Camera view matrix (orientation only, no translation)
    134104    vrMatrix4x4f _cameraMatrix;
     105    /// Field of view (vertical angle in degrees)
     106    float _fov;
     107    /// Near, far z clipping
     108    float _near, _far;
    135109
    136110    /// screen width
  • trunk/packages/vizservers/nanovis/NvRegularVolumeShader.cpp

    r2971 r3362  
    1717}
    1818
    19 void NvRegularVolumeShader::bind(unsigned int tfID, Volume *volume, int sliceMode)
     19void NvRegularVolumeShader::bind(unsigned int tfID, Volume *volume,
     20                                 int sliceMode, float sampleRatio)
    2021{
    2122    //regular cubic volume
     
    2526                                MATRIX_IDENTITY);
    2627
    27     setFPTextureParameter("volume", volume->id);
     28    setFPTextureParameter("volume", volume->textureID());
    2829    setFPTextureParameter("tf", tfID);
    2930
    30     if (!sliceMode) {
    31         setFPParameter4f("renderParameters",
    32                          volume->numSlices(),
    33                          volume->opacityScale(),
    34                          volume->diffuse(),
    35                          volume->specular());
    36     } else {
    37         setFPParameter4f("renderParameters",
    38                          0.,
    39                          volume->opacityScale(),
    40                          volume->diffuse(),
    41                          volume->specular());
    42     }
     31    setFPParameter4f("material",
     32                     volume->ambient(),
     33                     volume->diffuse(),
     34                     volume->specularLevel(),
     35                     volume->specularExponent());
    4336
    44     setFPParameter4f("options",
    45                      0.0f,
     37    setFPParameter4f("renderParams",
     38                     (sliceMode ? 0.0f : sampleRatio),
    4639                     volume->isosurface(),
    47                      0.0f,
    48                      0.0f);
     40                     volume->opacityScale(),
     41                     (volume->twoSidedLighting() ? 1.0f : 0.0f));
    4942
    5043    NvShader:: bind();
  • trunk/packages/vizservers/nanovis/NvRegularVolumeShader.h

    r2971 r3362  
    66#include "NvVolumeShader.h"
    77
     8/// Shader for regular volume (uniform grid)
    89class NvRegularVolumeShader : public NvVolumeShader
    910{
     
    1314    virtual ~NvRegularVolumeShader();
    1415
    15     virtual void bind(unsigned int tfID, Volume* volume, int sliceMode);
     16    virtual void bind(unsigned int tfID, Volume *volume,
     17                      int sliceMode, float sampleRatio);
    1618
    1719    virtual void unbind();
  • trunk/packages/vizservers/nanovis/NvShader.h

    r2971 r3362  
    127127    }
    128128
     129    void setVPMatrixParameterf(const char *name, float *mat)
     130    {
     131        CGparameter param = getVPParam(name);
     132        if (param == NULL)
     133            return;
     134        cgSetMatrixParameterfc(param, mat);
     135    }
     136
     137    void setFPMatrixParameterf(const char *name, float *mat)
     138    {
     139        CGparameter param = getFPParam(name);
     140        if (param == NULL)
     141            return;
     142        cgSetMatrixParameterfc(param, mat);
     143    }
     144
    129145    void setVPTextureParameter(const char *name, GLuint texobj, bool enable = true)
    130146    {
     
    179195    }
    180196
    181     void setGLStateMatrixVPParameter(const char *name, NvGLMatrix matrix, NvGLMatrixType type)
     197    void setGLStateMatrixVPParameter(const char *name, NvGLMatrix matrix,
     198                                     NvGLMatrixType type = MATRIX_IDENTITY)
    182199    {
    183200        CGparameter param = getVPParam(name);
     
    187204    }
    188205
    189     void setGLStateMatrixFPParameter(const char *name, NvGLMatrix matrix, NvGLMatrixType type)
     206    void setGLStateMatrixFPParameter(const char *name, NvGLMatrix matrix,
     207                                     NvGLMatrixType type = MATRIX_IDENTITY)
    190208    {
    191209        CGparameter param = getFPParam(name);
  • trunk/packages/vizservers/nanovis/NvStdVertexShader.cpp

    r2956 r3362  
    1616}
    1717
    18 void NvStdVertexShader::bind()
     18void NvStdVertexShader::bind(float *mvp, float *mvInv)
    1919{
    20     setGLStateMatrixVPParameter("modelViewProjMatrix", MODELVIEW_PROJECTION_MATRIX, MATRIX_IDENTITY);
    21     setGLStateMatrixVPParameter("modelViewInv", MODELVIEW_MATRIX, MATRIX_INVERSE);
     20    if (mvp != NULL) {
     21        setVPMatrixParameterf("modelViewProjMatrix", mvp);
     22    } else {
     23        setGLStateMatrixVPParameter("modelViewProjMatrix", MODELVIEW_PROJECTION_MATRIX);
     24    }
     25    if (mvInv != NULL) {
     26        setVPMatrixParameterf("modelViewInv", mvInv);
     27    } else {
     28        setGLStateMatrixVPParameter("modelViewInv", MODELVIEW_MATRIX, MATRIX_INVERSE);
     29    }
    2230
    2331    NvShader::bind();
  • trunk/packages/vizservers/nanovis/NvStdVertexShader.h

    r2956 r3362  
    1212    virtual ~NvStdVertexShader();
    1313
    14     virtual void bind();
     14    virtual void bind(float *mvp = NULL, float *mvInv = NULL);
    1515
    1616    virtual void unbind()
  • trunk/packages/vizservers/nanovis/NvVectorField.cpp

    r2909 r3362  
    1010    _activated(true),
    1111    _origin(0, 0, 0),
    12     _physicalMin(0, 0, 0),
    13     _physicalSize(1, 1, 1),
    1412    _scaleX(1),
    1513    _scaleY(1),
     
    4038    _scaleZ = scaleZ;
    4139    _max = max;
    42     _vectorFieldId = volPtr->id;
    43     _physicalMin = volPtr->getPhysicalBBoxMin();
    44     TRACE("_physicalMin %f %f %f\n", _physicalMin.x, _physicalMin.y, _physicalMin.z);
    45     _physicalSize = volPtr->getPhysicalBBoxMax() - _physicalMin;
    46     TRACE("_physicalSize %f %f %f\n",
    47            _physicalSize.x, _physicalSize.y, _physicalSize.z);
     40    _vectorFieldId = volPtr->textureID();
    4841}
    4942
     
    187180    glPushAttrib(GL_ENABLE_BIT);
    188181
     182    glEnable(GL_DEPTH_TEST);
     183    glDisable(GL_TEXTURE_2D);
     184    glDisable(GL_BLEND);
     185
    189186    glMatrixMode(GL_MODELVIEW);
    190187    glPushMatrix();
    191188
    192     glEnable(GL_DEPTH_TEST);
    193     glDisable(GL_TEXTURE_2D);
    194     glEnable(GL_BLEND);
    195 
    196     float x0, y0, z0, x1, y1, z1;
     189    Vector3 origin = _volPtr->location();
     190    glTranslatef(origin.x, origin.y, origin.z);
     191
     192    Vector3 scale = _volPtr->getPhysicalScaling();
     193    glScaled(scale.x, scale.y, scale.z);
     194
     195    Vector3 min, max;
     196    min.x = _volPtr->xAxis.min();
     197    min.y = _volPtr->yAxis.min();
     198    min.z = _volPtr->zAxis.min();
     199    max.x = _volPtr->xAxis.max();
     200    max.y = _volPtr->yAxis.max();
     201    max.z = _volPtr->zAxis.max();
     202
    197203    std::map<std::string, NvDeviceShape>::iterator iterShape;
    198204
    199     glTranslatef(_origin.x, _origin.y, _origin.z);
    200     glScaled(_scaleX, _scaleY, _scaleZ);
    201205    for (iterShape = _shapeMap.begin(); iterShape != _shapeMap.end();
    202206         ++iterShape) {
    203207        NvDeviceShape& shape = (*iterShape).second;
    204        
     208
    205209        if (!shape.visible) continue;
    206        
    207        
     210
     211        float x0, y0, z0, x1, y1, z1;
     212        x0 = y0 = z0 = 0.0f;
     213        x1 = y1 = z1 = 0.0f;
     214        if (max.x > min.x) {
     215            x0 = (shape.min.x - min.x) / (max.x - min.x);
     216            x1 = (shape.max.x - min.x) / (max.x - min.x);
     217        }
     218        if (max.y > min.y) {
     219            y0 = (shape.min.y - min.y) / (max.y - min.y);
     220            y1 = (shape.max.y - min.y) / (max.y - min.y);
     221        }
     222        if (max.z > min.z) {
     223            z0 = (shape.min.z - min.z) / (max.z - min.z);
     224            z1 = (shape.max.z - min.z) / (max.z - min.z);
     225        }
     226
     227        TRACE("rendering box %g,%g %g,%g %g,%g\n", x0, x1, y0, y1, z0, z1);
     228
    208229        glColor4d(shape.color.x, shape.color.y, shape.color.z, shape.color.w);
    209 #if 0
    210         x0 = _physicalMin.x + (shape.min.x - _physicalMin.x) / _physicalSize.x;
    211         y0 = _physicalMin.y + (shape.min.y - _physicalMin.y) / _physicalSize.y;
    212         z0 = _physicalMin.z + (shape.min.z - _physicalMin.z) / _physicalSize.z;
    213         x1 = _physicalMin.x + (shape.max.x - _physicalMin.x) / _physicalSize.x;
    214         y1 = _physicalMin.y + (shape.max.y - _physicalMin.y) / _physicalSize.y;
    215         z1 = _physicalMin.z + (shape.max.z - _physicalMin.z) / _physicalSize.z;
    216 #endif
    217         x0 = (shape.min.x - _physicalMin.x) / _physicalSize.x;
    218         y0 = (shape.min.y - _physicalMin.y) / _physicalSize.y;
    219         z0 = (shape.min.z - _physicalMin.z) / _physicalSize.z;
    220         x1 = (shape.max.x - _physicalMin.x) / _physicalSize.x;
    221         y1 = (shape.max.y - _physicalMin.y) / _physicalSize.y;
    222         z1 = (shape.max.z - _physicalMin.z) / _physicalSize.z;
    223        
    224230        glLineWidth(1.2);
    225231        glBegin(GL_LINE_LOOP);
  • trunk/packages/vizservers/nanovis/NvVectorField.h

    r2909 r3362  
    5454    }
    5555
    56     /////////////////////////////
    57     // DEVICE
    5856    void addDeviceShape(const std::string& name, const NvDeviceShape& shape);
    5957
     
    6361
    6462    void deactivateDeviceShape(const std::string& name);
    65    
     63
    6664    void initialize();
    6765
     
    102100
    103101    Vector3 _origin;
    104     Vector3 _physicalMin;
    105     Vector3 _physicalSize;
    106102    float _scaleX;
    107103    float _scaleY;
  • trunk/packages/vizservers/nanovis/NvVolumeShader.h

    r2844 r3362  
    1212    virtual ~NvVolumeShader();
    1313
    14     virtual void bind(unsigned int tfID, Volume *volume, int sliceMode) = 0;
     14    virtual void bind(unsigned int tfID, Volume *volume,
     15                      int sliceMode, float sampleRatio) = 0;
    1516
    16     virtual void unbind() = 0;
     17    virtual void unbind()
     18    {
     19        NvShader::unbind();
     20    }
    1721
    1822protected :
  • trunk/packages/vizservers/nanovis/NvZincBlendeReconstructor.cpp

    r2844 r3362  
    255255
    256256    zincBlendeVolume = new ZincBlendeVolume(origin.x, origin.y, origin.z,
    257                                             width, height, depth, 1, 4,
     257                                            width, height, depth, 4,
    258258                                            fourAnionVolume, fourCationVolume,
    259259                                            vmin, vmax, nzero_min, cellSize);
     
    333333
    334334    zincBlendeVolume = new ZincBlendeVolume(origin.x, origin.y, origin.z,
    335                                             width, height, depth, 1, 4,
     335                                            width, height, depth, 4,
    336336                                            fourAnionVolume, fourCationVolume,
    337337                                            vmin, vmax, nzero_min, cellSize);
  • trunk/packages/vizservers/nanovis/NvZincBlendeVolumeShader.cpp

    r2971 r3362  
    1717}
    1818
    19 void NvZincBlendeVolumeShader::bind(unsigned int tfID, Volume *volume, int sliceMode)
     19void NvZincBlendeVolumeShader::bind(unsigned int tfID, Volume *volume,
     20                                    int sliceMode, float sampleRatio)
    2021{
    2122    ZincBlendeVolume *vol = (ZincBlendeVolume *)volume;
    2223    setGLStateMatrixFPParameter("modelViewInv", MODELVIEW_MATRIX,
    2324                                MATRIX_INVERSE);
     25
    2426    setFPTextureParameter("tf", tfID);
     27    setFPTextureParameter("volumeA", vol->zincblendeTex[0]->id());
     28    setFPTextureParameter("volumeB", vol->zincblendeTex[1]->id());
     29
    2530    setFPParameter4f("cellSize",
    2631                     vol->cellSize.x,
     
    2833                     vol->cellSize.z, 0.);
    2934
    30     if (!sliceMode) {
    31         setFPParameter4f("renderParameters",
    32                          vol->numSlices(),
    33                          vol->opacityScale(),
    34                          vol->diffuse(),
    35                          vol->specular());
    36     } else {
    37         setFPParameter4f("renderParameters",
    38                          0.,
    39                          vol->opacityScale(),
    40                          vol->diffuse(),
    41                          vol->specular());
    42     }
    43 
    44     setFPParameter4f("options",
    45                      0.0f,
     35    setFPParameter4f("renderParams",
     36                     (sliceMode ? 0.0f : sampleRatio),
    4637                     volume->isosurface(),
    47                      0.0f,
     38                     volume->opacityScale(),
    4839                     0.0f);
    49 
    50     setFPTextureParameter("volumeA", vol->zincblendeTex[0]->id());
    51     setFPTextureParameter("volumeB", vol->zincblendeTex[1]->id());
    5240
    5341    NvShader::bind();
     
    5644void NvZincBlendeVolumeShader::unbind()
    5745{
     46    disableFPTextureParameter("tf");
    5847    disableFPTextureParameter("volumeA");
    5948    disableFPTextureParameter("volumeB");
    60     disableFPTextureParameter("tf");
    6149
    6250    NvShader::unbind();
  • trunk/packages/vizservers/nanovis/NvZincBlendeVolumeShader.h

    r2971 r3362  
    1313    virtual ~NvZincBlendeVolumeShader();
    1414
    15     virtual void bind(unsigned int tfID, Volume *volume, int sliceMode);
     15    virtual void bind(unsigned int tfID, Volume *volume,
     16                      int sliceMode, float sampleRatio);
    1617
    1718    virtual void unbind();
  • trunk/packages/vizservers/nanovis/Plane.h

    r3177 r3362  
    2222class Plane
    2323{
    24     float a, b, c, d;
    2524public:
    26 
    2725    Plane(float a, float b, float c, float d);
    2826
     
    6563        normal.z = c;
    6664    }
     65
     66private:
     67    float a, b, c, d;
    6768};
    6869
  • trunk/packages/vizservers/nanovis/RenderVertexArray.cpp

    r3177 r3362  
    4444
    4545RenderVertexArray::RenderVertexArray(int nverts, GLint size, GLenum type) :
    46     _usage(GL_STREAM_COPY_ARB), 
     46    _usage(GL_STREAM_COPY_ARB),
    4747    _nverts(nverts),
    4848    _size(size),
  • trunk/packages/vizservers/nanovis/Switch.cpp

    r2798 r3362  
    378378 *---------------------------------------------------------------------------
    379379 */
    380 /* ARGSUSED */
    381380void
    382381FreeSwitches(
  • trunk/packages/vizservers/nanovis/Texture3D.cpp

    r3177 r3362  
    5252    _wrapR(GL_CLAMP_TO_EDGE)
    5353{
    54     //int m = (_width > _height) ? _width : _height;
    55     //m = (m > _depth) ? m : _depth;
    56 
    57     //int m = max(max(_width, _height), _depth);
    58     _aspectRatioWidth = 1.;
    59     _aspectRatioHeight = (double)_height/(double)_width;
    60     _aspectRatioDepth = (double)_depth/(double)_width;
    61 
    62     //_aspectRatioWidth = (double)_width/(double)m;
    63     //_aspectRatioHeight = (double)_height/(double)m;
    64     //_aspectRatioDepth = (double)_depth/(double)m;
    65 
    6654    if (data != NULL)
    6755        initialize(data);
  • trunk/packages/vizservers/nanovis/Texture3D.h

    r3177 r3362  
    5555    }
    5656
    57     /// Always 1
    58     double aspectRatioWidth() const
    59     {
    60         return _aspectRatioWidth;
    61     }
    62 
    63     /// height / width
    64     double aspectRatioHeight() const
    65     {
    66         return _aspectRatioHeight;
    67     }
    68 
    69     /// depth / width
    70     double aspectRatioDepth() const
    71     {
    72         return _aspectRatioDepth;
    73     }
    74 
    7557    GLuint id() const
    7658    {
     
    9375    int _depth;
    9476
    95     double _aspectRatioWidth;
    96     double _aspectRatioHeight;
    97     double _aspectRatioDepth;
    98 
    9977    int _numComponents;
    10078
  • trunk/packages/vizservers/nanovis/Vector3.h

    r3177 r3362  
    2626{
    2727public:
    28     float x, y, z;
    29 
    3028    Vector3()
    3129    {}
     
    4442    {
    4543        TRACE("(x:%f, y:%f, z:%f)\n", x, y, z);
     44    }
     45
     46    bool operator==(const Vector3& op2) const
     47    {
     48        return (x == op2.x && y == op2.y && z == op2.z);
    4649    }
    4750
     
    172175    }
    173176
     177    float x, y, z;
     178
    174179private:
    175180    float radians(float degree) const
     
    181186typedef std::vector<Vector3> Vector3Array;
    182187
     188/**
     189 * \brief Linear interpolation of 2 vectors
     190 */
     191inline Vector3 vlerp(const Vector3& v1, const Vector3& v2, double t)
     192{
     193    return Vector3(v1.x * (1.0-t) + v2.x * t,
     194                   v1.y * (1.0-t) + v2.y * t,
     195                   v1.z * (1.0-t) + v2.z * t);
     196}
     197
    183198#endif
  • trunk/packages/vizservers/nanovis/Vector4.h

    r3177 r3362  
    2424{
    2525public:
    26     float x, y, z, w;
    27 
    2826    Vector4()
    2927    {}
     
    4846    {
    4947        TRACE("Vector4: (%.3f, %.3f, %.3f, %.3f)\n", x, y, z, w);
     48    }
     49
     50    bool operator==(const Vector4& op2) const
     51    {
     52        return (x == op2.x && y == op2.y && z == op2.z && w == op2.w);
    5053    }
    5154
     
    7477        return Vector4(x / op2, y / op2, z / op2, w / op2);
    7578    }
     79
     80    float x, y, z, w;
    7681};
    7782
    7883typedef std::vector<Vector4> Vector4Array;
    7984
     85/**
     86 * \brief Linear interpolation of 2 points
     87 */
     88inline Vector4 vlerp(const Vector4& v1, const Vector4& v2, double t)
     89{
     90    return Vector4(v1.x * (1.0-t) + v2.x * t,
     91                   v1.y * (1.0-t) + v2.y * t,
     92                   v1.z * (1.0-t) + v2.z * t,
     93                   v1.w * (1.0-t) + v2.w * t);
     94}
     95
     96/**
     97 * \brief Finds the intersection of a line through
     98 * p1 and p2 with the given plane.
     99 *
     100 * If the line lies in the plane, an arbitrary
     101 * point on the line is returned.
     102 *
     103 * Reference:
     104 * http://astronomy.swin.edu.au/pbourke/geometry/planeline/
     105 *
     106 * \param[in] pt1 First point
     107 * \param[in] pt2 Second point
     108 * \param[in] plane Plane equation coefficients
     109 * \param[out] ret Point of intersection if a solution was found
     110 * \return Bool indicating if an intersection was found
     111 */
     112inline bool
     113planeLineIntersection(const Vector4& pt1, const Vector4& pt2,
     114                      const Vector4& plane, Vector4& ret)
     115{
     116    float a = plane.x;
     117    float b = plane.y;
     118    float c = plane.z;
     119    float d = plane.w;
     120
     121    Vector4 p1 = pt1;
     122    float x1 = p1.x;
     123    float y1 = p1.y;
     124    float z1 = p1.z;
     125
     126    Vector4 p2 = pt2;
     127    float x2 = p2.x;
     128    float y2 = p2.y;
     129    float z2 = p2.z;
     130
     131    float uDenom = a * (x1 - x2) + b * (y1 - y2) + c * (z1 - z2);
     132    float uNumer = a * x1 + b * y1 + c * z1 + d;
     133
     134    if (uDenom == 0.0f) {
     135        // Plane parallel to line
     136        if (uNumer == 0.0f) {
     137            // Line within plane
     138            ret = p1;
     139            return true;
     140        }
     141        // No solution
     142        TRACE("No intersection between line and plane\n");
     143        return false;
     144    }
     145
     146    float u = uNumer / uDenom;
     147    ret.x = x1 + u * (x2 - x1);
     148    ret.y = y1 + u * (y2 - y1);
     149    ret.z = z1 + u * (z2 - z1);
     150    ret.w = 1;
     151    return true;
     152}
     153
    80154#endif
  • trunk/packages/vizservers/nanovis/VelocityArrowsSlice.cpp

    r2972 r3362  
    1515#include "VelocityArrowsSlice.h"
    1616#include "NvShader.h"
     17#include "NvCamera.h"
    1718
    1819static inline float deg2rad(float deg)
     
    412413        _particleShader.setFPTextureParameter("arrows", _arrowsTex->id());
    413414        _particleShader.setVPParameter1f("tanHalfFOV",
    414                                          tan(30. * 0.5) * NanoVis::winHeight * 0.5);
     415                                         tan(NanoVis::getCamera()->fov() * 0.5) * NanoVis::winHeight * 0.5);
    415416        _particleShader.setGLStateMatrixVPParameter("modelview",
    416417                                                    NvShader::MODELVIEW_MATRIX,
  • trunk/packages/vizservers/nanovis/Volume.cpp

    r3177 r3362  
    2525
    2626Volume::Volume(float x, float y, float z,
    27                int w, int h, int d, float s,
     27               int w, int h, int d,
    2828               int n, float *data,
    2929               double v0, double v1, double nonZeroMin) :
    30     aspectRatioWidth(1),
    31     aspectRatioHeight(1),
    32     aspectRatioDepth(1),
    33     id(0),
    34     width(w),
    35     height(h),
    36     depth(d),
    37     size(s),
    38     pointsetIndex(-1),
     30    _id(0),
     31    _width(w),
     32    _height(h),
     33    _depth(d),
    3934    _tfPtr(NULL),
    40     _specular(6.),
    41     _diffuse(3.),
    42     _opacityScale(10.),
     35    _ambient(0.6f),
     36    _diffuse(0.4f),
     37    _specular(0.3f),
     38    _specularExp(90.0f),
     39    _lightTwoSide(false),
     40    _opacityScale(0.5f),
    4341    _name(NULL),
    4442    _data(NULL),
     
    5553    _isosurface(0)
    5654{
    57     _tex = new Texture3D(w, h, d, GL_FLOAT, GL_LINEAR, n);
    58     int fcount = width * height * depth * _numComponents;
     55    TRACE("Enter Volume(): %dx%dx%d\n", _width, _height, _depth);
     56
     57    _tex = new Texture3D(_width, _height, _depth, GL_FLOAT, GL_LINEAR, n);
     58    int fcount = _width * _height * _depth * _numComponents;
    5959    _data = new float[fcount];
    6060    if (data != NULL) {
     
    6464    } else {
    6565        TRACE("data is null\n");
    66         memset(_data, 0, sizeof(width * height * depth * _numComponents *
     66        memset(_data, 0, sizeof(_width * _height * _depth * _numComponents *
    6767                                sizeof(float)));
    6868        _tex->initialize(_data);
    6969    }
    7070
    71     id = _tex->id();
     71    _id = _tex->id();
    7272
    7373    wAxis.setRange(v0, v1);
    74 
    75     // VOLUME
    76     aspectRatioWidth  = s * _tex->aspectRatioWidth();
    77     aspectRatioHeight = s * _tex->aspectRatioHeight();
    78     aspectRatioDepth =  s * _tex->aspectRatioDepth();
    7974
    8075    //Add cut planes. We create 3 default cut planes facing x, y, z directions.
     
    8580    addCutplane(3, 0.5f);
    8681
    87     TRACE("End -- Volume constructor\n");
     82    TRACE("Leave Volume()\n");
    8883}
    8984
    9085Volume::~Volume()
    91 {
    92     if (pointsetIndex != -1) {
    93         // TBD...
    94     }
     86{
     87    TRACE("In ~Volume()");
    9588
    9689    delete [] _data;
  • trunk/packages/vizservers/nanovis/Volume.h

    r3177 r3362  
    6565     * \param height Number of samples in Y
    6666     * \param depth Number of samples in Z
    67      * \param size Scale factor
    6867     * \param numComponents Number of components per sample
    6968     * \param data width * height * depth * numComponent sample array
     
    7473    Volume(float x, float y, float z,
    7574           int width, int height, int depth,
    76            float size, int numComponents,
     75           int numComponents,
    7776           float *data,
    7877           double vmin, double vmax,
     
    8180    virtual ~Volume();
    8281
     82    int width() const
     83    {
     84        return _width;
     85    }
     86
     87    int height() const
     88    {
     89        return _height;
     90    }
     91
     92    int depth() const
     93    {
     94        return _depth;
     95    }
     96
    8397    void visible(bool value)
    8498    {
     
    126140    }
    127141
    128     float *data()
     142    const float *data() const
    129143    {
    130144        return _data;
    131145    }
    132146
    133     Texture3D *tex()
     147    const Texture3D *tex() const
    134148    {
    135149        return _tex;
    136150    }
    137    
     151
    138152    int numSlices() const
    139153    {
     
    145159        _numSlices = n;
    146160    }
    147 
    148     /// set the drawing size of volume
    149     void setSize(float s);
    150161
    151162    // methods related to cutplanes
     
    169180    // methods related to shading. These parameters are per volume
    170181
    171     /// Get specular exponent
    172     float specular() const
    173     {
    174         return _specular;
    175     }
    176 
    177     /// Set specular exponent [0,128]
    178     void specular(float value)
     182    /// Get ambient coefficient
     183    float ambient() const
     184    {
     185        return _ambient;
     186    }
     187
     188    /// Set ambient coefficient [0,1]
     189    void ambient(float value)
    179190    {
    180191        if (value < 0.0f) value = 0.0f;
    181         if (value > 128.0f) value = 128.0f;
    182         _specular = value;
     192        if (value > 1.0f) value = 1.0f;
     193        _ambient = value;
    183194    }
    184195
     
    197208    }
    198209
     210    /// Get specular coefficient
     211    float specularLevel() const
     212    {
     213        return _specular;
     214    }
     215
     216    /// Set specular coefficient [0,1]
     217    void specularLevel(float value)
     218    {
     219        if (value < 0.0f) value = 0.0f;
     220        if (value > 1.0f) value = 1.0f;
     221        _specular = value;
     222    }
     223
     224    /// Get specular exponent
     225    float specularExponent() const
     226    {
     227        return _specularExp;
     228    }
     229
     230    /// Set specular exponent [0,128]
     231    void specularExponent(float value)
     232    {
     233        if (value < 0.0f) value = 0.0f;
     234        if (value > 128.0f) value = 128.0f;
     235        _specularExp = value;
     236    }
     237
     238    bool twoSidedLighting() const
     239    {
     240        return _lightTwoSide;
     241    }
     242
     243    void twoSidedLighting(bool value)
     244    {
     245        _lightTwoSide = value;
     246    }
     247
    199248    float opacityScale() const
    200249    {
     
    241290    void getOutlineColor(float *rgb);
    242291
    243     void setPhysicalBBox(const Vector3& min, const Vector3& max);
    244 
    245     const Vector3& getPhysicalBBoxMin() const;
    246 
    247     const Vector3& getPhysicalBBoxMax() const;
     292    Vector3 getPhysicalScaling() const
     293    {
     294        Vector3 scale;
     295        scale.x = 1;
     296        scale.y = yAxis.length() / xAxis.length();
     297        scale.z = zAxis.length() / xAxis.length();
     298        return scale;
     299    }
     300
     301    double sampleDistanceX() const
     302    {
     303        return (xAxis.length() / ((double)_width-1.0));
     304    }
     305
     306    double sampleDistanceY() const
     307    {
     308        return (yAxis.length() / ((double)_height-1.0));
     309    }
     310
     311    double sampleDistanceZ() const
     312    {
     313        if (_depth == 1)
     314            return sampleDistanceX();
     315        return (zAxis.length() / ((double)_depth-1.0));
     316    }
    248317
    249318    const char *name() const
     
    257326    }
    258327
    259     float aspectRatioWidth;
    260     float aspectRatioHeight;
    261     float aspectRatioDepth;
    262 
    263     GLuint id;          ///< OpenGL textue identifier (==_tex->id)
     328    GLuint textureID() const
     329    {
     330        return _id;
     331    }
     332
     333    AxisRange xAxis, yAxis, zAxis, wAxis;
     334
     335    static bool updatePending;
     336    static double valueMin, valueMax;
     337
     338    friend class VolumeInterpolator;
     339
     340protected:
     341    float *data()
     342    {
     343        return _data;
     344    }
     345
     346    Texture3D *tex()
     347    {
     348        return _tex;
     349    }
     350
     351    GLuint _id;         ///< OpenGL textue identifier (==_tex->id)
    264352
    265353    // Width, height and depth are point resolution, NOT physical
    266354    // units
    267355    /// The resolution of the data (how many points in X direction)
    268     int width;
     356    int _width;
    269357    /// The resolution of the data (how many points in Y direction)
    270     int height;
     358    int _height;
    271359    /// The resolution of the data (how many points in Z direction)
    272     int depth;
    273     /**
    274      * This is the scaling factor that will size the volume on screen.
    275      * A render program drawing different objects, always knows how
    276      * large an object is in relation to other objects. This size is
    277      * provided by the render engine.
    278      */
    279     float size;
    280 
    281     int pointsetIndex;
    282 
    283     AxisRange xAxis, yAxis, zAxis, wAxis;
    284 
    285     static bool updatePending;
    286     static double valueMin, valueMax;
    287 
    288 protected:
     360    int _depth;
     361
    289362    /**
    290363     * This is the designated transfer function to use to
     
    293366    TransferFunction *_tfPtr;
    294367
    295     float _specular;            ///< Specular lighting parameter
    296     float _diffuse;             ///< Diffuse lighting parameter
     368    float _ambient;      ///< Ambient material coefficient
     369    float _diffuse;      ///< Diffuse material coefficient
     370    float _specular;     ///< Specular level material coefficient
     371    float _specularExp;  ///< Specular exponent
     372    bool _lightTwoSide;  ///< Two-sided lighting flag
     373
    297374    /**
    298375     * The scale multiplied to the opacity assigned by the
     
    303380
    304381    const char *_name;
    305     Vector3 _physicalMin;
    306     Vector3 _physicalMax;
    307382    float *_data;
    308383
     
    343418    _plane[index].enabled = true;
    344419}
     420
    345421inline void
    346422Volume::disableCutplane(int index)
     
    378454
    379455inline void
    380 Volume::setSize(float s)
    381 {
    382     size = s;
    383     aspectRatioWidth  = s * _tex->aspectRatioWidth();
    384     aspectRatioHeight = s * _tex->aspectRatioHeight();
    385     aspectRatioDepth  = s * _tex->aspectRatioDepth();
    386 }
    387 
    388 inline void
    389456Volume::setOutlineColor(float *rgb)
    390457{
     
    398465}
    399466
    400 inline void
    401 Volume::setPhysicalBBox(const Vector3& min, const Vector3& max)
    402 {
    403     _physicalMin = min;
    404     _physicalMax = max;
    405 
    406     /*
    407     aspectRatioWidth = size * 1;
    408     aspectRatioHeight = size * (max.y - min.y) / (max.x - min.x);
    409     aspectRatioDepth = size* (max.z - min.z) / (max.x - min.x);
    410 
    411     location.x = -0.5;
    412     location.y = -0.5* aspectRatioHeight;
    413     location.z = -0.5* aspectRatioDepth;
    414     */
    415 }
    416 
    417 inline const Vector3&
    418 Volume::getPhysicalBBoxMin() const
    419 {
    420     return _physicalMin;
    421 }
    422 
    423 inline const Vector3&
    424 Volume::getPhysicalBBoxMax() const
    425 {
    426     return _physicalMax;
    427 }
    428 
    429467#endif
  • trunk/packages/vizservers/nanovis/VolumeInterpolator.cpp

    r2953 r3362  
    121121{
    122122    if (_volumes.size() != 0) {
    123         if (_volumes[0]->width != refPtr->width ||
    124             _volumes[0]->height != refPtr->height ||   
    125             _volumes[0]->depth != refPtr->depth ||
     123        if (_volumes[0]->width() != refPtr->width() ||
     124            _volumes[0]->height() != refPtr->height() ||   
     125            _volumes[0]->depth() != refPtr->depth() ||
    126126            _volumes[0]->numComponents() != refPtr->numComponents()) {
    127127            TRACE("The volume should be the same width, height, number of components\n");
     
    129129        }
    130130    } else {
    131         _dataCount = refPtr->width * refPtr->height * refPtr->depth;
     131        _dataCount = refPtr->width() * refPtr->height() * refPtr->depth();
    132132        _numComponents = refPtr->numComponents();
    133133        _numBytes = _dataCount * _numComponents * sizeof(float);
    134134        Vector3 loc = refPtr->location();
    135135        _volume = new Volume(loc.x, loc.y, loc.z,
    136                              refPtr->width, refPtr->height, refPtr->depth,
    137                              refPtr->size,
     136                             refPtr->width(),
     137                             refPtr->height(),
     138                             refPtr->depth(),
    138139                             refPtr->numComponents(),
    139140                             refPtr->data(),
     
    141142                             refPtr->wAxis.max(),
    142143                             refPtr->nonZeroMin());
     144
    143145        _volume->numSlices(256-1);
    144146        _volume->disableCutplane(0);
     
    147149        _volume->visible(true);
    148150        _volume->dataEnabled(true);
    149         _volume->specular(refPtr->specular());
     151        _volume->ambient(refPtr->ambient());
    150152        _volume->diffuse(refPtr->diffuse());
     153        _volume->specularLevel(refPtr->specularLevel());
     154        _volume->specularExponent(refPtr->specularExponent());
    151155        _volume->opacityScale(refPtr->opacityScale());
    152156        _volume->isosurface(0);
  • trunk/packages/vizservers/nanovis/VolumeRenderer.cpp

    r3177 r3362  
    3838VolumeRenderer::~VolumeRenderer()
    3939{
     40    delete _cutplaneShader;
    4041    delete _zincBlendeShader;
    4142    delete _regularVolumeShader;
     
    4748void VolumeRenderer::initShaders()
    4849{
     50    _cutplaneShader = new NvShader();
     51    _cutplaneShader->loadVertexProgram("cutplane_vp.cg", "main");
     52    _cutplaneShader->loadFragmentProgram("cutplane_fp.cg", "main");
     53
    4954    //standard vertex program
    5055    _stdVertexShader = new NvStdVertexShader();
     
    102107    for (hPtr = Tcl_FirstHashEntry(&NanoVis::volumeTable, &iter); hPtr != NULL;
    103108         hPtr = Tcl_NextHashEntry(&iter)) {
    104         Volume* volPtr;
     109        Volume *volPtr;
    105110        volPtr = (Volume *)Tcl_GetHashValue(hPtr);
    106111        if (!volPtr->visible()) {
     
    122127    //number of actual slices for each volume
    123128    size_t *actual_slices = new size_t[volumes.size()];
     129    float *z_steps = new float[volumes.size()];
    124130
    125131    TRACE("start loop %d\n", volumes.size());
     
    136142
    137143        //volume start location
    138         Vector3 loc = volPtr->location();
    139         Vector4 shift_4d(loc.x, loc.y, loc.z, 0);
     144        Vector3 volPos = volPtr->location();
     145        Vector3 volScaling = volPtr->getPhysicalScaling();
     146
     147        TRACE("VOL POS: %g %g %g\n",
     148              volPos.x, volPos.y, volPos.z);
     149        TRACE("VOL SCALE: %g %g %g\n",
     150              volScaling.x, volScaling.y, volScaling.z);
    140151
    141152        double x0 = 0;
     
    157168        //get modelview matrix with no translation
    158169        glPushMatrix();
    159         glScalef(volPtr->aspectRatioWidth,
    160                  volPtr->aspectRatioHeight,
    161                  volPtr->aspectRatioDepth);
     170        glScalef(volScaling.x, volScaling.y, volScaling.z);
    162171
    163172        glEnable(GL_DEPTH_TEST);
     
    173182        //get modelview matrix with translation
    174183        glPushMatrix();
    175         glTranslatef(shift_4d.x, shift_4d.y, shift_4d.z);
    176         glScalef(volPtr->aspectRatioWidth,
    177                  volPtr->aspectRatioHeight,
    178                  volPtr->aspectRatioDepth);
     184        glTranslatef(volPos.x, volPos.y, volPos.z);
     185        glScalef(volScaling.x, volScaling.y, volScaling.z);
     186
    179187        GLfloat mv_trans[16];
    180188        glGetFloatv(GL_MODELVIEW_MATRIX, mv_trans);
     
    194202        glPopMatrix();
    195203
    196         //transform volume_planes to eye coordinates.
     204        // transform volume_planes to eye coordinates.
     205        // Need to transform without translation since we don't want
     206        // to translate plane normals, just rotate them
    197207        for (size_t j = 0; j < 6; j++) {
    198208            volume_planes[j].transform(model_view_no_trans);
     
    206216        //compute actual rendering slices
    207217        float z_step = fabs(zNear-zFar)/n_slices;
     218        z_steps[i] = z_step;
    208219        size_t n_actual_slices;
    209220
    210221        if (volPtr->dataEnabled()) {
    211             n_actual_slices = (int)(fabs(zNear-zFar)/z_step + 1);
     222            if (z_step == 0.0f)
     223                n_actual_slices = 1;
     224            else
     225                n_actual_slices = (int)(fabs(zNear-zFar)/z_step + 1);
    212226            polys[i] = new ConvexPolygon*[n_actual_slices];
    213227        } else {
     
    217231        actual_slices[i] = n_actual_slices;
    218232
    219         // These are object coordinates
    220         Vector4 vert1 = (Vector4(-10, -10, -0.5, 1));
    221         Vector4 vert2 = (Vector4(-10, +10, -0.5, 1));
    222         Vector4 vert3 = (Vector4(+10, +10, -0.5, 1));
    223         Vector4 vert4 = (Vector4(+10, -10, -0.5, 1));
     233        TRACE("near: %g far: %g eye space bounds: (%g,%g)-(%g,%g) z_step: %g slices: %d",
     234              zNear, zFar, eyeMinX, eyeMaxX, eyeMinY, eyeMaxY, z_step, n_actual_slices);
     235
     236        Vector4 vert1, vert2, vert3, vert4;
    224237
    225238        // Render cutplanes first with depth test enabled.  They will mark the
     
    228241        // vice versa.
    229242
    230         ConvexPolygon static_poly;
    231243        for (int j = 0; j < volPtr->getCutplaneCount(); j++) {
    232244            if (!volPtr->isCutplaneEnabled(j)) {
     
    235247            float offset = volPtr->getCutplane(j)->offset;
    236248            int axis = volPtr->getCutplane(j)->orient;
    237            
    238             if (axis == 3) {
    239                 vert1 = Vector4(-10, -10, offset, 1);
    240                 vert2 = Vector4(-10, +10, offset, 1);
    241                 vert3 = Vector4(+10, +10, offset, 1);
    242                 vert4 = Vector4(+10, -10, offset, 1);
    243                 //continue;
    244             } else if (axis == 1) {
    245                 vert1 = Vector4(offset, -10, -10, 1);
    246                 vert2 = Vector4(offset, +10, -10, 1);
    247                 vert3 = Vector4(offset, +10, +10, 1);
    248                 vert4 = Vector4(offset, -10, +10, 1);
    249                 //continue;
    250             } else if (axis == 2) {
    251                 vert1 = Vector4(-10, offset, -10, 1);
    252                 vert2 = Vector4(+10, offset, -10, 1);
    253                 vert3 = Vector4(+10, offset, +10, 1);
    254                 vert4 = Vector4(-10, offset, +10, 1);
    255                 //continue;
     249
     250            switch (axis) {
     251            case 1:
     252                vert1 = Vector4(offset, 0, 0, 1);
     253                vert2 = Vector4(offset, 1, 0, 1);
     254                vert3 = Vector4(offset, 1, 1, 1);
     255                vert4 = Vector4(offset, 0, 1, 1);
     256                break;
     257            case 2:
     258                vert1 = Vector4(0, offset, 0, 1);
     259                vert2 = Vector4(1, offset, 0, 1);
     260                vert3 = Vector4(1, offset, 1, 1);
     261                vert4 = Vector4(0, offset, 1, 1);
     262                break;
     263            case 3:
     264            default:
     265                vert1 = Vector4(0, 0, offset, 1);
     266                vert2 = Vector4(1, 0, offset, 1);
     267                vert3 = Vector4(1, 1, offset, 1);
     268                vert4 = Vector4(0, 1, offset, 1);
     269                break;
    256270            }
    257271
    258             vert1 = model_view_no_trans.transform(vert1);
    259             vert2 = model_view_no_trans.transform(vert2);
    260             vert3 = model_view_no_trans.transform(vert3);
    261             vert4 = model_view_no_trans.transform(vert4);
    262 
    263             ConvexPolygon *p = &static_poly;
    264             p->vertices.clear();
    265 
    266             p->appendVertex(vert1);
    267             p->appendVertex(vert2);
    268             p->appendVertex(vert3);
    269             p->appendVertex(vert4);
    270 
    271             for (size_t k = 0; k < 6; k++) {
    272                 p->clip(volume_planes[k], true);
    273             }
    274 
    275             p->transform(model_view_no_trans_inverse);
    276             p->transform(model_view_trans);
     272            Vector4 texcoord1 = vert1;
     273            Vector4 texcoord2 = vert2;
     274            Vector4 texcoord3 = vert3;
     275            Vector4 texcoord4 = vert4;
     276
     277            _cutplaneShader->bind();
     278            _cutplaneShader->setFPTextureParameter("volume", volPtr->textureID());
     279            _cutplaneShader->setFPTextureParameter("tf", volPtr->transferFunction()->id());
    277280
    278281            glPushMatrix();
    279             glScalef(volPtr->aspectRatioWidth,
    280                      volPtr->aspectRatioHeight,
    281                      volPtr->aspectRatioDepth);
    282 
    283             activateVolumeShader(volPtr, true);
     282            glTranslatef(volPos.x, volPos.y, volPos.z);
     283            glScalef(volScaling.x, volScaling.y, volScaling.z);
     284            _cutplaneShader->setGLStateMatrixVPParameter("modelViewProjMatrix",
     285                                                         NvShader::MODELVIEW_PROJECTION_MATRIX);
    284286            glPopMatrix();
    285287
     
    287289            glDisable(GL_BLEND);
    288290
    289             glBegin(GL_POLYGON);
    290             p->emit(true);
     291            glBegin(GL_QUADS);
     292            glTexCoord3f(texcoord1.x, texcoord1.y, texcoord1.z);
     293            glVertex3f(vert1.x, vert1.y, vert1.z);
     294            glTexCoord3f(texcoord2.x, texcoord2.y, texcoord2.z);
     295            glVertex3f(vert2.x, vert2.y, vert2.z);
     296            glTexCoord3f(texcoord3.x, texcoord3.y, texcoord3.z);
     297            glVertex3f(vert3.x, vert3.y, vert3.z);
     298            glTexCoord3f(texcoord4.x, texcoord4.y, texcoord4.z);
     299            glVertex3f(vert4.x, vert4.y, vert4.z);
    291300            glEnd();
     301
    292302            glDisable(GL_DEPTH_TEST);
    293 
    294             deactivateVolumeShader();
     303            _cutplaneShader->disableFPTextureParameter("tf");
     304            _cutplaneShader->disableFPTextureParameter("volume");
     305            _cutplaneShader->unbind();
    295306        } //done cutplanes
    296307
    297         //Now do volume rendering
     308        // Now prepare proxy geometry slices
    298309
    299310        // Initialize view-aligned quads with eye space bounds of
    300311        // volume
    301         vert1 = (Vector4(eyeMinX, eyeMinY, -0.5, 1));
    302         vert2 = (Vector4(eyeMaxX, eyeMinY, -0.5, 1));
    303         vert3 = (Vector4(eyeMaxX, eyeMaxY, -0.5, 1));
    304         vert4 = (Vector4(eyeMinX, eyeMaxY, -0.5, 1));
     312        vert1 = Vector4(eyeMinX, eyeMinY, -0.5, 1);
     313        vert2 = Vector4(eyeMaxX, eyeMinY, -0.5, 1);
     314        vert3 = Vector4(eyeMaxX, eyeMaxY, -0.5, 1);
     315        vert4 = Vector4(eyeMinX, eyeMaxY, -0.5, 1);
    305316
    306317        size_t counter = 0;
    307318
    308         //transform slices and store them
     319        // Transform slices and store them
    309320        float slice_z;
    310321        for (size_t j = 0; j < n_actual_slices; j++) {
     
    330341
    331342            for (size_t k = 0; k < 6; k++) {
    332                 poly->clip(volume_planes[k], true);
     343                if (!poly->clip(volume_planes[k], true))
     344                    break;
    333345            }
    334346
    335             poly->transform(model_view_no_trans_inverse);
    336             poly->transform(model_view_trans);
    337 
    338             if (poly->vertices.size() >= 3)
     347            if (poly->vertices.size() >= 3) {
     348                poly->transform(model_view_no_trans_inverse);
     349                poly->transform(model_view_trans);
    339350                total_rendered_slices++;
     351            }
    340352        }
    341353    } //iterate all volumes
     
    372384        int volume_index = slices[i].volumeId;
    373385        int slice_index = slices[i].sliceId;
    374         ConvexPolygon *cur = polys[volume_index][slice_index];
     386        ConvexPolygon *currentSlice = polys[volume_index][slice_index];
     387        float z_step = z_steps[volume_index];
    375388
    376389        volPtr = volumes[volume_index];
    377390
     391        Vector3 volScaling = volPtr->getPhysicalScaling();
     392
    378393        glPushMatrix();
    379         glScalef(volPtr->aspectRatioWidth,
    380                  volPtr->aspectRatioHeight,
    381                  volPtr->aspectRatioDepth);
     394        glScalef(volScaling.x, volScaling.y, volScaling.z);
     395
     396        // FIXME: compute view-dependent volume sample distance
     397        double avgSampleDistance = 1.0 / pow(volPtr->width() * volScaling.x *
     398                                             volPtr->height() * volScaling.y *
     399                                             volPtr->depth() * volScaling.z, 1.0/3.0);
     400        float sampleRatio = z_step / avgSampleDistance;
    382401
    383402#ifdef notdef
    384         TRACE("shading slice: volume %s addr=%x slice=%d, volume=%d\n",
    385                volPtr->name(), volPtr, slice_index, volume_index);
     403        TRACE("shading slice: volume %s addr=%x slice=%d, volume=%d z_step=%g avgSD=%g\n",
     404              volPtr->name(), volPtr, slice_index, volume_index, z_step, avgSampleDistance);
    386405#endif
    387         activateVolumeShader(volPtr, false);
     406        activateVolumeShader(volPtr, false, sampleRatio);
    388407        glPopMatrix();
    389408
    390409        glBegin(GL_POLYGON);
    391         cur->emit(true);
     410        currentSlice->emit(true);
    392411        glEnd();
    393412
     
    408427    delete[] polys;
    409428    delete[] actual_slices;
     429    delete[] z_steps;
    410430    free(slices);
    411431}
     
    470490
    471491void
    472 VolumeRenderer::activateVolumeShader(Volume* volPtr, bool sliceMode)
     492VolumeRenderer::activateVolumeShader(Volume *volPtr, bool sliceMode,
     493                                     float sampleRatio)
    473494{
    474495    //vertex shader
     
    476497    TransferFunction *tfPtr  = volPtr->transferFunction();
    477498    if (volPtr->volumeType() == Volume::CUBIC) {
    478         _regularVolumeShader->bind(tfPtr->id(), volPtr, sliceMode);
     499        _regularVolumeShader->bind(tfPtr->id(), volPtr, sliceMode, sampleRatio);
    479500    } else if (volPtr->volumeType() == Volume::ZINCBLENDE) {
    480         _zincBlendeShader->bind(tfPtr->id(), volPtr, sliceMode);
     501        _zincBlendeShader->bind(tfPtr->id(), volPtr, sliceMode, sampleRatio);
    481502    }
    482503}
  • trunk/packages/vizservers/nanovis/VolumeRenderer.h

    r3177 r3362  
    6666    void initShaders();
    6767
    68     void activateVolumeShader(Volume *vol, bool slice_mode);
     68    void activateVolumeShader(Volume *vol, bool sliceMode, float sampleRatio);
    6969
    7070    void deactivateVolumeShader();
     
    8181    VolumeInterpolator *_volumeInterpolator;
    8282
    83     /**
    84      * shader parameters for rendering a single cubic volume
     83    /**
     84     * Shader for single slice cutplane render
     85     */
     86    NvShader *_cutplaneShader;
     87
     88    /**
     89     * Shader for rendering a single cubic volume
    8590     */
    8691    NvRegularVolumeShader *_regularVolumeShader;
    8792
    8893    /**
    89      * Shader parameters for rendering a single zincblende orbital.  A
     94     * Shader for rendering a single zincblende orbital.  A
    9095     * simulation contains S, P, D and SS, total of 4 orbitals. A full
    9196     * rendering requires 4 zincblende orbital volumes.  A zincblende orbital
  • trunk/packages/vizservers/nanovis/ZincBlendeVolume.cpp

    r3177 r3362  
    2121
    2222ZincBlendeVolume::ZincBlendeVolume(float x, float y, float z,
    23                                    int w, int h, int d, float s, int n,
     23                                   int w, int h, int d, int n,
    2424                                   float *dataVolumeA, float *dataVolumeB,
    2525                                   double v0, double v1, double non_zeromin,
    2626                                   const Vector3& cellSz) :
    27     Volume(x, y, z, w, h, d, s, n, dataVolumeA, v0, v1, non_zeromin),
     27    Volume(x, y, z, w, h, d, n, dataVolumeA, v0, v1, non_zeromin),
    2828    cellSize(cellSz)
    2929{
  • trunk/packages/vizservers/nanovis/ZincBlendeVolume.h

    r3177 r3362  
    2424public:
    2525    ZincBlendeVolume(float x, float y, float z,
    26                      int width, int height, int depth, float size, int n_component,
     26                     int width, int height, int depth, int numComponents,
    2727                     float *dataVolumeA, float *dataVolumeB,
    2828                     double vmin, double vmax, double non_zeromin, const Vector3& cellSize);
  • trunk/packages/vizservers/nanovis/config.h

    r3177 r3362  
    3737#define USE_HALF_FLOAT
    3838
    39 #define XINETD                          /* Enable render server. */
    40 //#define EVENTLOG                      /* Enable event logging. */
    41 //#define DO_RLE                        /* Do run length compression. */
     39/*
     40 * Enable render server
     41 */
     42#define XINETD
    4243
    43 #define KEEPSTATS               1
     44/*
     45 * Enable event logging
     46 */
     47//#define EVENTLOG
     48
     49/*
     50 * Do run length compression
     51 */
     52//#define DO_RLE
     53
     54/*
     55 * Keep statistics
     56 */
     57#define KEEPSTATS
    4458
    4559/*
     
    4862#define WANT_TRACE
    4963
    50 #define OLD_CAMERA
    51 
    52 /*
    53  * The following define controls whether new prototype features are to be
    54  * compiled.  Right now by default it's off (0). That's because nanovis
    55  * releases are built directly from the subversion repository.  So for now,
    56  * we'll rely on developers to set this in their respective sandboxes.
     64/*
     65 * Controls whether DX data is downsampled.
    5766 */
    58 #define PROTOTYPE               0
    59 
    60 /*
    61  * The following define controls whether the new or old load_volume_stream
    62  * implementation is used to load DX data. The difference is that the old
    63  * implementation doesn't do any interpolation of the points to a coarser
    64  * mesh.  Setting ISO_TEST to 1 will cause the old implementation to be
    65  * used, which makes isosurfaces work correctly (FIXME: is this still
    66  * true?)
    67  *
    68  * [In the future, we'll use the OpenDX library reader and determine at
    69  * runtime if mesh decimation is required]
    70  */
    71 #define ISO_TEST                1
     67//#define DOWNSAMPLE_DATA
    7268
    7369/*
     
    7571 * volume
    7672 */
    77 #define FILTER_GRADIENTS        0
     73#define FILTER_GRADIENTS
    7874
    7975/*
    80  * The following define controls whether the plane* commands are
    81  * registered in the interpreter.  Right now it's off.  [Are these
    82  * commands still required?]
     76 * Controls whether the plane* commands are registered in the
     77 * interpreter. [Are these commands still required?]
    8378 */
    84 #define PLANE_CMD               0
     79//#define PLANE_CMD
    8580
    8681#endif
  • trunk/packages/vizservers/nanovis/dxReader.cpp

    r3177 r3362  
    231231    double vmax = -DBL_MAX;
    232232    if (isrect) {
    233 #if ISO_TEST
    234         data = new float[nx *  ny *  nz * 4];
    235         memset(data, 0, nx*ny*nz*4);
    236 #else // !ISO_TEST
     233#ifdef DOWNSAMPLE_DATA
    237234        Rappture::Mesh1D xgrid(x0, x0 + lx, nx);
    238235        Rappture::Mesh1D ygrid(y0, y0 + ly, ny);
    239236        Rappture::Mesh1D zgrid(z0, z0 + lz, nz);
    240237        Rappture::FieldRect3D field(xgrid, ygrid, zgrid);
    241 #endif // ISO_TEST
     238#else // !DOWNSAMPLE_DATA
     239        data = new float[nx *  ny *  nz * 4];
     240        memset(data, 0, nx*ny*nz*4);
     241#endif // DOWNSAMPLE_DATA
    242242        double dval[6];
    243243        int nread = 0;
     
    260260                }
    261261#endif
    262 #if ISO_TEST
     262#ifdef DOWNSAMPLE_DATA
     263                int nindex = iz*nx*ny + iy*nx + ix;
     264                field.define(nindex, dval[p]);
     265#else // !DOWNSAMPLE_DATA
    263266                int nindex = (iz*nx*ny + iy*nx + ix) * 4;
    264267                data[nindex] = dval[p];
     
    272275                    nzero_min = dval[p];
    273276                }
    274 #else // !ISO_TEST
    275                 int nindex = iz*nx*ny + iy*nx + ix;
    276                 field.define(nindex, dval[p]);
    277 #endif // ISO_TEST
     277#endif // DOWNSAMPLE_DATA
    278278                nread++;
    279279                if (++iz >= nz) {
     
    294294        }
    295295
    296 #if ISO_TEST
     296#ifndef DOWNSAMPLE_DATA
    297297        double dv = vmax - vmin;
    298298        if (dv == 0.0) {
     
    313313        computeSimpleGradient(data, nx, ny, nz,
    314314                              dx, dy, dz);
    315 #else // !ISO_TEST
     315#else // DOWNSAMPLE_DATA
    316316        // figure out a good mesh spacing
    317317        int nsample = 30;
    318318        double dmin = pow((lx*ly*lz)/((nsample-1)*(nsample-1)*(nsample-1)), 0.333);
    319319
    320         nx = (int)ceil(lx/dmin);
    321         ny = (int)ceil(ly/dmin);
    322         nz = (int)ceil(lz/dmin);
     320        nx = (int)ceil(lx/dmin) + 1;
     321        ny = (int)ceil(ly/dmin) + 1;
     322        nz = (int)ceil(lz/dmin) + 1;
    323323
    324324#ifndef HAVE_NPOT_TEXTURES
     
    342342
    343343        int ngen = 0;
    344 #if FILTER_GRADIENTS
     344#ifdef FILTER_GRADIENTS
    345345        // Sobel filter expects a single float at
    346346        // each node
     
    369369                        nzero_min = v;
    370370                    }
    371 #if FILTER_GRADIENTS
     371#ifdef FILTER_GRADIENTS
    372372                    // NOT normalized, -1 => out of bounds
    373373                    v = (isnan(v)) ? -1.0 : v;
     
    382382            }
    383383        }
    384 #if FILTER_GRADIENTS
     384#ifdef FILTER_GRADIENTS
    385385        // computeGradient returns a new array with gradients
    386386        // filled in, so data is now 4 floats per node
     
    394394#endif // FILTER_GRADIENTS
    395395
    396 #endif // ISO_TEST
     396#endif // DOWNSAMPLE_DATA
    397397    } else {
    398398        Rappture::Mesh1D zgrid(z0, z0 + (nz-1)*dz, nz);
     
    439439        double dmin = pow((lx*ly*lz)/((nsample-1)*(nsample-1)*(nsample-1)), 0.333);
    440440
    441         nx = (int)ceil(lx/dmin);
    442         ny = (int)ceil(ly/dmin);
    443         nz = (int)ceil(lz/dmin);
     441        nx = (int)ceil(lx/dmin) + 1;
     442        ny = (int)ceil(ly/dmin) + 1;
     443        nz = (int)ceil(lz/dmin) + 1;
    444444#ifndef HAVE_NPOT_TEXTURES
    445445        // must be an even power of 2 for older cards
  • trunk/packages/vizservers/nanovis/nanovis.cpp

    r3330 r3362  
    4040#include <string>
    4141
    42 #include <RpField1D.h>
    43 #include <RpFieldRect3D.h>
    44 #include <RpFieldPrism3D.h>
    4542#include <RpEncode.h>
    4643
     
    10299typedef struct {
    103100    pid_t pid;
    104     size_t nFrames;                     /* # of frames sent to client. */
    105     size_t nBytes;                      /* # of bytes for all frames. */
    106     size_t nCommands;                   /* # of commands executed */
    107     double cmdTime;                     /* Elasped time spend executing
    108                                          * commands. */
    109     struct timeval start;               /* Start of elapsed time. */
     101    size_t nFrames;            /**< # of frames sent to client. */
     102    size_t nBytes;             /**< # of bytes for all frames. */
     103    size_t nCommands;          /**< # of commands executed */
     104    double cmdTime;            /**< Elasped time spend executing
     105                                * commands. */
     106    struct timeval start;      /**< Start of elapsed time. */
    110107} Stats;
    111 
    112108
    113109static Stats stats;
     
    127123
    128124PlaneRenderer *NanoVis::planeRenderer = NULL;
    129 #if PLANE_CMD
     125#ifdef PLANE_CMD
    130126// pointers to 2D planes, currently handle up 10
    131127int NanoVis::numPlanes = 10;
     
    184180Tcl_HashTable NanoVis::tfTable;
    185181
    186 PerfQuery *perf = NULL;                        //perfromance counter
    187 
    188 // Variables for mouse events
    189 
    190 #ifdef OLD_CAMERA
    191 // Default camera rotation angles.
    192 const float def_rot_x = 90.0f;
    193 const float def_rot_y = 180.0f;
    194 const float def_rot_z = -135.0f;
    195 
    196 // Default camera target.
    197 const float def_target_x = 0.0f;
    198 const float def_target_y = 0.0f;
    199 const float def_target_z = 0.0f; //100.0f;
    200 
    201 // Default camera location.
    202 const float def_eye_x = 0.0f;
    203 const float def_eye_y = 0.0f;
    204 const float def_eye_z = -2.5f;
    205 
    206 #else
    207 
    208 // Default camera rotation angles.
    209 const float def_rot_x = 0.0f; // 45.0f;
    210 const float def_rot_y = 0.0f; // -45.0f;
    211 const float def_rot_z = 0.0f;
    212 
    213 // Default camera target.
    214 const float def_target_x = 0.0f;
    215 const float def_target_y = 0.0f;
    216 const float def_target_z = 0.0f;
     182PerfQuery *perf = NULL;                        //performance counter
    217183
    218184// Default camera location.
     
    220186const float def_eye_y = 0.0f;
    221187const float def_eye_z = 2.5f;
    222 #endif
    223188
    224189#ifndef XINETD
     190// Variables for mouse events
    225191// Last locations mouse events
    226192static int left_last_x;
     
    240206NanoVis::removeAllData()
    241207{
    242     //
     208    TRACE("in removeAllData\n");
     209    if (grid != NULL) {
     210        TRACE("Deleting grid");
     211        delete grid;
     212    }
     213    if (cam != NULL) {
     214        TRACE("Deleting cam");
     215        delete cam;
     216    }
     217    if (volRenderer != NULL) {
     218        TRACE("Deleting volRenderer");
     219        delete volRenderer;
     220    }
     221    if (planeRenderer != NULL) {
     222        TRACE("Deleting planeRenderer");
     223        delete planeRenderer;
     224    }
     225    if (colorTableRenderer != NULL) {
     226        TRACE("Deleting colorTableRenderer");
     227        delete colorTableRenderer;
     228    }
     229#ifdef PLANE_CMD
     230    for (int i = 0; i < numPlanes; i++) {
     231        TRACE("Deleting plane[%d]", i);
     232        delete plane[i];
     233    }
     234#endif
     235    if (legendTexture != NULL) {
     236        TRACE("Deleting legendTexture");
     237        delete legendTexture;
     238    }
     239#ifdef notdef
     240    if (flowVisRenderer != NULL) {
     241        TRACE("Deleting flowVisRenderer");
     242        delete flowVisRenderer;
     243    }
     244#endif
     245    TRACE("Deleting flows");
     246    DeleteFlows(interp);
     247    if (licRenderer != NULL) {
     248        TRACE("Deleting licRenderer");
     249        delete licRenderer;
     250    }
     251    if (velocityArrowsSlice != NULL) {
     252        TRACE("Deleting velocityArrowsSlice");
     253        delete velocityArrowsSlice;
     254    }
     255    if (renderContext != NULL) {
     256        TRACE("Deleting renderContext");
     257        delete renderContext;
     258    }
     259    if (screenBuffer != NULL) {
     260        TRACE("Deleting screenBuffer");
     261        delete [] screenBuffer;
     262    }
     263    if (perf != NULL) {
     264        TRACE("Deleting perf");
     265        delete perf;
     266    }
     267#ifdef USE_POINTSET_RENDERER
     268    if (pointSetRenderer != NULL) {
     269        TRACE("Deleting pointSetRenderer");
     270        delete pointSetRenderer;
     271    }
     272    for (std::vector<PointSet *>::iterator itr = pointSet.begin();
     273         itr != pointSet.end(); ++itr) {
     274        TRACE("Deleting pointSet: %p", *itr);
     275        delete (*itr);
     276    }
     277#endif
    243278}
    244279
     
    255290}
    256291
     292#ifdef KEEPSTATS
     293
    257294#define STATSDIR        "/var/tmp/visservers"
    258295#define STATSFILE       STATSDIR "/" "nanovis_log.tcl"
     
    260297
    261298static int
    262 GetFileLock()
     299getFileLock()
    263300{
    264301    int numTries;
     
    289326
    290327static void
    291 ReleaseFileLock()
     328releaseFileLock()
    292329{
    293330    unlink(LOCKFILE);
     
    295332
    296333int
    297 NanoVis::WriteToStatsFile(const char *s, size_t length)
     334NanoVis::writeToStatsFile(const char *s, size_t length)
    298335{
    299336    int f;
     
    302339        mkdir(STATSDIR, 0770);
    303340    }
    304     if (GetFileLock() < 0) {
     341    if (getFileLock() < 0) {
    305342        return -1;
    306343    }
    307344    f = open(STATSFILE, O_APPEND | O_CREAT | O_WRONLY, 0600);
    308     ReleaseFileLock();
     345    releaseFileLock();
    309346    if (f < 0) {
    310347        return -1;
     
    320357
    321358static int
    322 ServerStats(int code)
     359serverStats(int code)
    323360{
    324361    double start, finish;
     
    428465    }
    429466    Tcl_DStringAppend(&ds, "\n", -1);
    430     result = NanoVis::WriteToStatsFile(Tcl_DStringValue(&ds),
     467    result = NanoVis::writeToStatsFile(Tcl_DStringValue(&ds),
    431468                                       Tcl_DStringLength(&ds));
    432469    Tcl_DStringFree(&ds);
     
    434471}
    435472
     473#endif
     474
    436475static void
    437476doExit(int code)
     
    450489#endif
    451490
    452     ServerStats(code);
     491#ifdef KEEPSTATS
     492    serverStats(code);
     493#endif
    453494    closelog();
    454495    exit(code);
     
    490531    TRACE("pan: x=%f, y=%f\n", dx, dy);
    491532
    492 #ifdef OLD_CAMERA
    493     cam->x(def_eye_x + dx);
    494 #else
    495533    cam->x(def_eye_x - dx);
    496 #endif
    497534    cam->y(def_eye_y + dy);
    498535    TRACE("set eye to %f %f\n", cam->x(), cam->y());
    499 #ifdef OLD_CAMERA
    500     cam->xAim(def_target_x + dx);
    501 #else
    502     cam->xAim(def_target_x - dx);
    503 #endif
    504     cam->yAim(def_target_y + dy);
    505     TRACE("set aim to %f %f\n", cam->xAim(), cam->yAim());
    506536}
    507537
     
    540570    hPtr = Tcl_CreateHashEntry(&volumeTable, name, &isNew);
    541571    Volume* volPtr;
    542     volPtr = new Volume(0.f, 0.f, 0.f, width, height, depth, 1., n_component,
     572    volPtr = new Volume(0.f, 0.f, 0.f, width, height, depth, n_component,
    543573                        data, vmin, vmax, nzero_min);
     574    Volume::updatePending = true;
    544575    Tcl_SetHashValue(hPtr, volPtr);
    545576    volPtr->name(Tcl_GetHashKey(&volumeTable, hPtr));
     
    555586    hPtr = Tcl_FindHashEntry(&tfTable, name);
    556587    if (hPtr == NULL) {
     588        ERROR("No transfer function named \"%s\" found", name);
    557589        return NULL;
    558590    }
     
    570602    hPtr = Tcl_CreateHashEntry(&tfTable, name, &isNew);
    571603    if (isNew) {
     604        TRACE("Creating new transfer function \"%s\"", name);
     605
    572606        tfPtr = new TransferFunction(n, data);
    573607        tfPtr->name(Tcl_GetHashKey(&tfTable, hPtr));
    574608        Tcl_SetHashValue(hPtr, tfPtr);
    575609    } else {
     610        TRACE("Updating existing transfer function \"%s\"", name);
     611
    576612        /*
    577613         * You can't delete the transfer function because many
     
    756792}
    757793
    758 #if PROTOTYPE
    759 /*
    760  * FIXME: This routine is fairly expensive (60000 floating pt divides).
    761  *      I've put an ifdef around the call to it so that the released
    762  *      builds don't include it.  Define PROTOTYPE to 1 in config.h
    763  *      to turn it back on.
    764  */
    765 static void
    766 makeTest2DData()
    767 {
    768     int w = 300;
    769     int h = 200;
    770     float *data = new float[w*h];
    771 
    772     //procedurally make a gradient plane
    773     for (int j = 0; j < h; j++){
    774         for (int i = 0; i < w; i++){
    775             data[w*j+i] = float(i)/float(w);
    776         }
    777     }
    778 
    779     NanoVis::plane[0] = new Texture2D(w, h, GL_FLOAT, GL_LINEAR, 1, data);
    780     delete[] data;
    781 }
    782 #endif
    783 
    784794static
    785795void cgErrorCallback(void)
     
    898908    //create the camera with default setting
    899909    cam = new NvCamera(0, 0, winWidth, winHeight,
    900                        def_eye_x, def_eye_y, def_eye_z,          /* location. */
    901                        def_target_x, def_target_y, def_target_z, /* target. */
    902                        def_rot_x, def_rot_y, def_rot_z);         /* angle. */
     910                       def_eye_x, def_eye_y, def_eye_z);
    903911
    904912    glEnable(GL_TEXTURE_2D);
     
    940948    //create a 2D plane renderer
    941949    planeRenderer = new PlaneRenderer(winWidth, winHeight);
    942 #if PROTOTYPE
    943     make_test_2D_data();
    944     planeRenderer->addPlane(plane[0], getTransfunc("default"));
    945 #endif
    946950
    947951    //assert(glGetError()==0);
     
    950954}
    951955
    952 #if DO_RLE
     956#ifdef DO_RLE
    953957char rle[512*512*3];
    954958int rleSize;
     
    12871291}
    12881292
    1289 
    1290 /*----------------------------------------------------*/
    12911293void
    12921294NanoVis::idle()
     
    13311333    TRACE("leaving display_offscreen_buffer\n");
    13321334}
    1333 
    1334 #if 0
    1335 //oddeven sort on GPU
    1336 static void
    1337 sortstep()
    1338 {
    1339     // perform one step of the current sorting algorithm
    1340 
    1341 #ifdef notdef
    1342     // swap buffers
    1343     int sourceBuffer = targetBuffer;
    1344     targetBuffer = (targetBuffer+1)%2;
    1345     int pstage = (1<<stage);
    1346     int ppass  = (1<<pass);
    1347     int activeBitonicShader = 0;
    1348 
    1349 #ifdef _WIN32
    1350     buffer->BindBuffer(wglTargets[sourceBuffer]);
    1351 #else
    1352     buffer->BindBuffer(glTargets[sourceBuffer]);
    1353 #endif
    1354     if (buffer->IsDoubleBuffered()) glDrawBuffer(glTargets[targetBuffer]);
    1355 #endif
    1356 
    1357     checkGLError("after db");
    1358 
    1359     int pstage = (1<<stage);
    1360     int ppass  = (1<<pass);
    1361     //int activeBitonicShader = 0;
    1362 
    1363     // switch on correct sorting shader
    1364     oddevenMergeSort.bind();
    1365     glUniform3fARB(oddevenMergeSort.getUniformLocation("Param1"), float(pstage+pstage),
    1366                    float(ppass%pstage), float((pstage+pstage)-(ppass%pstage)-1));
    1367     glUniform3fARB(oddevenMergeSort.getUniformLocation("Param2"),
    1368                    float(psys_width), float(psys_height), float(ppass));
    1369     glUniform1iARB(oddevenMergeSort.getUniformLocation("Data"), 0);
    1370     staticdebugmsg("sort","stage "<<pstage<<" pass "<<ppass);
    1371 
    1372     // This clear is not necessary for sort to function. But if we are in
    1373     // interactive mode unused parts of the texture that are visible will look
    1374     // bad.
    1375 #ifdef notdef
    1376     if (!perfTest) glClear(GL_COLOR_BUFFER_BIT);
    1377 
    1378     buffer->Bind();
    1379     buffer->EnableTextureTarget();
    1380 #endif
    1381 
    1382     // Initiate the sorting step on the GPU a full-screen quad
    1383     glBegin(GL_QUADS);
    1384     {
    1385 #ifdef notdef
    1386         glMultiTexCoord4fARB(GL_TEXTURE0_ARB,0.0f,0.0f,0.0f,1.0f);
    1387         glVertex2f(-1.0f,-1.0f);
    1388         glMultiTexCoord4fARB(GL_TEXTURE0_ARB,float(psys_width),0.0f,1.0f,1.0f);
    1389         glVertex2f(1.0f,-1.0f);
    1390         glMultiTexCoord4fARB(GL_TEXTURE0_ARB,float(psys_width),float(psys_height),1.0f,0.0f);
    1391         glVertex2f(1.0f,1.0f);
    1392         glMultiTexCoord4fARB(GL_TEXTURE0_ARB,0.0f,float(psys_height),0.0f,0.0f);
    1393         glVertex2f(-1.0f,1.0f);
    1394 #endif
    1395         glMultiTexCoord4fARB(GL_TEXTURE0_ARB,0.0f,0.0f,0.0f,1.0f);
    1396         glVertex2f(0.,0.);
    1397         glMultiTexCoord4fARB(GL_TEXTURE0_ARB,float(psys_width),0.0f,1.0f,1.0f);
    1398         glVertex2f(float(psys_width), 0.);
    1399         glMultiTexCoord4fARB(GL_TEXTURE0_ARB,float(psys_width),float(psys_height),1.0f,0.0f);
    1400         glVertex2f(float(psys_width), float(psys_height));
    1401         glMultiTexCoord4fARB(GL_TEXTURE0_ARB,0.0f,float(psys_height),0.0f,0.0f);
    1402         glVertex2f(0., float(psys_height));
    1403     }
    1404     glEnd();
    1405 
    1406     // switch off sorting shader
    1407     oddevenMergeSort.release();
    1408 
    1409     //buffer->DisableTextureTarget();
    1410 
    1411     //assert(glGetError()==0);
    1412 }
    1413 #endif
    14141335
    14151336void
     
    16421563}
    16431564
    1644 /*----------------------------------------------------*/
    16451565void
    16461566NanoVis::display()
    16471567{
    16481568    TRACE("in display\n");
     1569    if (flags & MAP_FLOWS) {
    16491570#ifdef notdef
    1650     if (flags & MAP_FLOWS) {
    16511571        xMin = yMin = zMin = wMin = FLT_MAX, magMin = DBL_MAX;
    16521572        xMax = yMax = zMax = wMax = -FLT_MAX, magMax = -DBL_MAX;
    1653     }
    1654 #endif
    1655     if (flags & MAP_FLOWS) {
     1573#endif
    16561574        MapFlows();
    16571575        grid->xAxis.setScale(xMin, xMax);
     
    17341652        }
    17351653
    1736         //soft_display_verts();
    1737         //perf->enable();
    1738         //perf->disable();
    1739         //TRACE("particle pixels: %d\n", perf->get_pixel_count());
    1740         //perf->reset();
    1741 
    1742         //perf->enable();
    17431654        volRenderer->renderAll();
    1744         //perf->disable();
    17451655
    17461656        if (heightmapTable.numEntries > 0) {
     
    18311741}
    18321742
    1833 #ifdef notdef
    1834 void NanoVis::initParticle()
    1835 {
    1836     flowVisRenderer->initialize();
    1837     licRenderer->makePatterns();
    1838 }
    1839 
    1840 static
    1841 void addVectorField(const char* filename, const char* vf_name,
    1842                     const char* plane_name1, const char* plane_name2,
    1843                     const Vector4& color1, const Vector4& color2)
    1844 {
    1845     Rappture::Outcome result;
    1846     Rappture::Buffer buf;
    1847 
    1848     buf.load(filename);
    1849     int n = NanoVis::n_volumes;
    1850     if (load_vector_stream2(result, n, buf.size(), buf.bytes())) {
    1851         Volume *volPtr = NanoVis::volume[n];
    1852         if (volPtr != NULL) {
    1853             volPtr->numSlices(256-n);
    1854             // volPtr->numSlices(512-n);
    1855             volPtr->disableCutplane(0);
    1856             volPtr->disableCutplane(1);
    1857             volPtr->disableCutplane(2);
    1858             volPtr->transferFunction(NanoVis::getTransfunc("default"));
    1859 
    1860             float dx0 = -0.5;
    1861             float dy0 = -0.5*volPtr->height/volPtr->width;
    1862             float dz0 = -0.5*volPtr->depth/volPtr->width;
    1863             volPtr->move(Vector3(dx0, dy0, dz0));
    1864             //volPtr->data(true);
    1865             volPtr->data(false);
    1866             NanoVis::flowVisRenderer->addVectorField(vf_name, volPtr,
    1867                 volPtr->location(),
    1868                 1.0f,
    1869                 volPtr->height / (float)volPtr->width,
    1870                 volPtr->depth  / (float)volPtr->width,
    1871                 1.0f);
    1872             NanoVis::flowVisRenderer->activateVectorField(vf_name);
    1873 
    1874             //////////////////////////////////
    1875             // ADD Particle Injection Plane1
    1876             NanoVis::flowVisRenderer->addPlane(vf_name, plane_name1);
    1877             NanoVis::flowVisRenderer->setPlaneAxis(vf_name, plane_name1, 0);
    1878             NanoVis::flowVisRenderer->setPlanePos(vf_name, plane_name1, 0.9);
    1879             NanoVis::flowVisRenderer->setParticleColor(vf_name, plane_name1, color1);
    1880             // ADD Particle Injection Plane2
    1881             NanoVis::flowVisRenderer->addPlane(vf_name, plane_name2);
    1882             NanoVis::flowVisRenderer->setPlaneAxis(vf_name, plane_name2, 0);
    1883             NanoVis::flowVisRenderer->setPlanePos(vf_name, plane_name2, 0.2);
    1884             NanoVis::flowVisRenderer->setParticleColor(vf_name, plane_name2, color2);
    1885             NanoVis::flowVisRenderer->initialize(vf_name);
    1886 
    1887             NanoVis::flowVisRenderer->activatePlane(vf_name, plane_name1);
    1888             NanoVis::flowVisRenderer->activatePlane(vf_name, plane_name2);
    1889 
    1890             NanoVis::licRenderer->
    1891                 setVectorField(volPtr->id,
    1892                                *(volPtr->get_location()),
    1893                                1.0f / volPtr->aspectRatioWidth,
    1894                                1.0f / volPtr->aspectRatioHeight,
    1895                                1.0f / volPtr->aspectRatioDepth,
    1896                                volPtr->wAxis.max());
    1897         }
    1898     }
    1899     //NanoVis::initParticle();
    1900 }
    1901 #endif
    1902 
    19031743void
    19041744NanoVis::keyboard(unsigned char key, int x, int y)
     
    19171757
    19181758    switch (key) {
    1919     case 'a' :
    1920         {
    1921             TRACE("flowvis active\n");
    1922             char cmd[] = {
    1923                 "foreach flow [flow names] {\n"
    1924                 "    $flow configure -hide no -slice yes\n"
    1925                 "}\n"
    1926             };
    1927             Tcl_Eval(interp, cmd);
    1928 #ifdef notdef
    1929             flowVisRenderer->active(true);
    1930             licRenderer->active(true);
    1931 #endif
    1932         }
     1759    case 'a': {
     1760        TRACE("flowvis activated\n");
     1761        char cmd[] = {
     1762            "foreach flow [flow names] {\n"
     1763            "    $flow configure -hide no -slice yes\n"
     1764            "}\n"
     1765        };
     1766        Tcl_Eval(interp, cmd);
     1767    }
    19331768        break;
    1934     case 'd' :
    1935         {
    1936             TRACE("flowvis deactived\n");
    1937             char cmd[] = {
    1938                 "foreach flow [flow names] {\n"
    1939                 "    $flow configure -hide yes -slice no\n"
    1940                 "}\n"
    1941             };
    1942             Tcl_Eval(interp, cmd);
    1943 #ifdef notdef
    1944             flowVisRenderer->active(false);
    1945             licRenderer->active(false);
    1946 #endif
    1947         }
     1769    case 'd': {
     1770        TRACE("flowvis deactivated\n");
     1771        char cmd[] = {
     1772            "foreach flow [flow names] {\n"
     1773            "    $flow configure -hide yes -slice no\n"
     1774            "}\n"
     1775        };
     1776        Tcl_Eval(interp, cmd);
     1777    }
    19481778        break;
    1949     case '1' :
    1950         {
    1951             TRACE("add vector field\n");
    1952             char cmd[] = {
    1953                 "flow create flow1\n"
    1954                 "flow1 data file data/flowvis_dx_files/jwire/J-wire-vec.dx 3\n"
    1955                 "flow1 particles add plane1 -color { 0 0 1 1 }\n"
    1956                 "flow1 particles add plane2 -color { 0 1 1 1 }\n"
    1957             };
    1958             Tcl_Eval(interp, cmd);
    1959 #ifdef notdef
    1960             addVectorField("data/flowvis_dx_files/jwire/J-wire-vec.dx",
    1961                            "vf_name2", "plane_name1", "plane_name2", Vector4(0, 0, 1, 1), Vector4(0, 1, 1, 1));
    1962 #endif
    1963         }
    1964         break;
    1965     case '2' :
    1966         {
    1967             char cmd[] = {
    1968                 "flow create flow2\n"
    1969                 "flow2 data file data/flowvis_dx_files/3DWireLeakage/SiO2/SiO2.dx 3\n"
    1970                 "flow2 particles add plane1 -color { 1 0 0 1 }\n"
    1971                 "flow2 particles add plane2 -color { 1 1 0 1 }\n"
    1972             };
    1973             Tcl_Eval(interp, cmd);
    1974             TRACE("add vector field\n");
    1975 #ifdef notdef
    1976             addVectorField("data/flowvis_dx_files/3DWireLeakage/SiO2/SiO2.dx",
    1977                            "vf_name1", "plane_name1", "plane_name2", Vector4(1, 0, 0, 1), Vector4(1, 1, 0, 1));
    1978 #endif
    1979         }
    1980         break;
    1981     case '3':
    1982         {
    1983             TRACE("activate\n");
    1984             char cmd[] = {
    1985                 "flow1 particles add plane2 -hide no\n"
    1986             };
    1987             Tcl_Eval(interp, cmd);
    1988 #ifdef notdef
    1989             NanoVis::flowVisRenderer->activatePlane("vf_name1", "plane_name2");
    1990 #endif
    1991         }
    1992         break;
    1993     case '4' :
    1994         {
    1995             TRACE("deactivate\n");
    1996             char cmd[] = {
    1997                 "flow1 particles add plane2 -hide yes\n"
    1998             };
    1999             Tcl_Eval(interp, cmd);
    2000 #ifdef notdef
    2001             flowVisRenderer->deactivatePlane("vf_name1", "plane_name2");
    2002 #endif
    2003         }
    2004         break;
    2005     case '5' :
    2006         {
    2007             TRACE("vector field deleted (vf_name2)\n");
    2008             char cmd[] = {
    2009                 "flow delete flow2\n"
    2010             };
    2011             Tcl_Eval(interp, cmd);
    2012 #ifdef notdef
    2013             flowVisRenderer->removeVectorField("vf_name2");
    2014 #endif
    2015         }
    2016         break;
    2017     case '6' :
    2018         {
    2019             TRACE("add device shape\n");
    2020             char cmd[] = {
    2021                 "flow1 box add box1 -corner1 {0 0 0} -corner2 {30 3 3} -color { 1 0 0 1 }\n"
    2022                 "flow1 box add box2 -corner1 {0 -1 -1} -corner2 {30 4 4} -color { 0 1 0 1 }\n"
    2023                 "flow1 box add box3 -corner1 {10 -1.5 -1} -corner2 {20 4.5 4.5} -color { 0 0 1 1 }\n"
    2024             };
    2025             Tcl_Eval(interp, cmd);
    2026 #ifdef notdef
    2027             NvDeviceShape shape;
    2028             shape.min.set(0, 0, 0);
    2029             shape.max.set(30, 3, 3);
    2030             shape.color.set(1, 0, 0, 1);
    2031             flowVisRenderer->addDeviceShape("vf_name1", "device1", shape);
    2032             shape.min.set(0, -1, -1);
    2033             shape.max.set(30, 4, 4);
    2034             shape.color.set(0, 1, 0, 1);
    2035             flowVisRenderer->addDeviceShape("vf_name1", "device2", shape);
    2036             shape.min.set(10, -1.5, -1);
    2037             shape.max.set(20, 4.5, 4.5);
    2038             shape.color.set(0, 0, 1, 1);
    2039             flowVisRenderer->addDeviceShape("vf_name1", "device3", shape);
    2040             flowVisRenderer->activateDeviceShape("vf_name1");
    2041 #endif
    2042         }
    2043         break;
    2044     case '7' :
    2045         {
    2046             TRACE("hide shape \n");
    2047             char cmd[] = {
    2048                 "flow1 box configure box1 -hide yes\n"
    2049             };
    2050             Tcl_Eval(interp, cmd);
    2051 #ifdef notdef
    2052             flowVisRenderer->deactivateDeviceShape("vf_name1");
    2053 #endif
    2054         }
    2055         break;
    2056     case '8' :
    2057         {
    2058             TRACE("show shape\n");
    2059             char cmd[] = {
    2060                 "flow1 box configure box1 -hide no\n"
    2061             };
    2062             Tcl_Eval(interp, cmd);
    2063 #ifdef notdef
    2064             flowVisRenderer->activateDeviceShape("vf_name1");
    2065 #endif
    2066         }
    2067         break;
    2068     case '9' :
    2069         {
    2070             TRACE("show a shape \n");
    2071             char cmd[] = {
    2072                 "flow1 box configure box3 -hide no\n"
    2073             };
    2074             Tcl_Eval(interp, cmd);
    2075 #ifdef notdef
    2076             flowVisRenderer->activateDeviceShape("vf_name1", "device3");
    2077 #endif
    2078         }
    2079         break;
    2080     case '0' :
    2081         {
    2082             TRACE("delete a shape \n");
    2083             char cmd[] = {
    2084                 "flow1 box delete box3\n"
    2085             };
    2086             Tcl_Eval(interp, cmd);
    2087 #ifdef notdef
    2088             flowVisRenderer->deactivateDeviceShape("vf_name1", "device3");
    2089 #endif
    2090         }
    2091         break;
    2092     case 'r' :
    2093         {
    2094             TRACE("reset \n");
    2095             char cmd[] = {
    2096                 "flow reset\n"
    2097             };
    2098             Tcl_Eval(interp, cmd);
    2099 #ifdef notdef
    2100             flowVisRenderer->reset();
    2101             licRenderer->reset();
    2102 #endif
    2103         }
     1779    case 'r': {
     1780        TRACE("flowvis reset\n");
     1781        char cmd[] = {
     1782            "flow reset\n"
     1783        };
     1784        Tcl_Eval(interp, cmd);
     1785    }
    21041786        break;
    21051787    }
     
    21521834NanoVis::render()
    21531835{
    2154 
    2155 #ifdef notdef
    2156     if ((licRenderer != NULL) && (licRenderer->active())) {
    2157         licRenderer->convolve();
    2158     }
    2159 #else
    21601836    if (licRenderer != NULL) {
    21611837        licRenderer->convolve();
    21621838    }
    2163 #endif
    21641839
    21651840#ifdef notdef
     
    22521927        objPtr = Tcl_GetObjResult(interp);
    22531928        msg = Tcl_GetStringFromObj(objPtr, &msgSize);
    2254         hdrSize = sprintf(hdr, "nv>viserror -bytes %d -type error\n", msgSize);
     1929        hdrSize = sprintf(hdr, "nv>viserror -type error -bytes %d\n", msgSize);
    22551930        {
    2256             struct iovec iov[3];
     1931            struct iovec iov[2];
    22571932
    22581933            iov[0].iov_base = hdr;
     
    22601935            iov[1].iov_base = msg;
    22611936            iov[1].iov_len = msgSize;
    2262             iov[2].iov_len = 1;
    2263             iov[2].iov_base = (char *)'\n';
    2264             if (writev(1, iov, 3) < 0) {
     1937            if (writev(1, iov, 2) < 0) {
    22651938                ERROR("write failed: %s\n", strerror(errno));
    22661939            }
     
    22901963        doExit(90);
    22911964    }
    2292 #if DO_RLE
     1965#ifdef DO_RLE
    22931966    do_rle();
    22941967    int sizes[2] = {  offsets_size*sizeof(offsets[0]), rle_size };
     
    22981971    write(1, rle, rle_size);    //unsigned byte
    22991972#else
    2300     ppmWrite("\nnv>image -type image -bytes");
     1973    ppmWrite("nv>image -type image -bytes");
    23011974#endif
    23021975    TRACE("Leaving xinetd_listen OK\n");
     
    24612134}
    24622135
    2463 int
    2464 NanoVis::render2dContour(HeightMap* heightmap, int width, int height)
    2465 {
    2466     int old_width = winWidth;
    2467     int old_height = winHeight;
    2468 
    2469     resizeOffscreenBuffer(width, height);
    2470 
    2471     /*
    2472       planeRenderer->setScreenSize(width, height);
    2473 
    2474       // generate data for the legend
    2475       float data[512];
    2476       for (int i=0; i < 256; i++) {
    2477           data[i] = data[i+256] = (float)(i/255.0);
    2478       }
    2479       plane[0] = new Texture2D(256, 2, GL_FLOAT, GL_LINEAR, 1, data);
    2480       int index = planeRenderer->addPlane(plane[0], tf);
    2481       planeRenderer->setActivePlane(index);
    2482 
    2483       bindOffscreenBuffer();
    2484       glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //clear screen
    2485 
    2486       //planeRenderer->render();
    2487       // INSOO : is going to implement here for the topview of the heightmap
    2488       heightmap->render(renderContext);
    2489 
    2490       // INSOO
    2491       glReadPixels(0, 0, width, height, GL_RGB, GL_UNSIGNED_BYTE, screen_buffer);
    2492       //glReadPixels(0, 0, width, height, GL_BGR, GL_UNSIGNED_BYTE, screen_buffer); // INSOO's
    2493       */
    2494 
    2495 
    2496     // HELP ME
    2497     // GEORGE
    2498     // I am not sure what I should do
    2499     //char prefix[200];
    2500     //sprintf(prefix, "nv>height_top_view %s %g %g", volArg, min, max);
    2501     //ppmWrite(prefix);
    2502     //write(1, "\n", 1);
    2503     //planeRenderer->removePlane(index);
    2504 
    2505     // CURRENT
    2506     bindOffscreenBuffer();
    2507     glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //clear screen
    2508     //glEnable(GL_TEXTURE_2D);
    2509     //glEnable(GL_DEPTH_TEST);
    2510     //heightmap->renderTopview(renderContext, width, height);
    2511     //NanoVis::display();
    2512     if (HeightMap::updatePending) {
    2513         setHeightmapRanges();
    2514     }
    2515 
    2516     //cam->initialize();
    2517 
    2518     heightmap->renderTopview(renderContext, width, height);
    2519 
    2520     readScreen();
    2521 
    2522     // INSOO TEST CODE
    2523     bmpWriteToFile(1, "/tmp");
    2524 
    2525     resizeOffscreenBuffer(old_width, old_height);
    2526 
    2527     return TCL_OK;
    2528 }
    2529 
    25302136void
    25312137NanoVis::removeVolume(Volume *volPtr)
  • trunk/packages/vizservers/nanovis/nanovis.h

    r3330 r3362  
    3232#include "config.h"
    3333
    34 #define NANOVIS_VERSION         "1.0"
     34#define NANOVIS_VERSION         "1.1"
    3535
    3636//defines for the image based flow visualization
     
    8484    static void removeAllData();
    8585
     86    static const NvCamera *getCamera()
     87    {
     88        return cam;
     89    }
    8690    static void pan(float dx, float dy);
    8791    static void zoom(float z);
     
    9195    static void setVolumeRanges();
    9296    static void setHeightmapRanges();
    93 #ifdef notdef
    94     static void initParticle();
    95 #endif
    96     static int WriteToStatsFile(const char *s, size_t length);
     97
     98#ifdef KEEPSTATS
     99    static int writeToStatsFile(const char *s, size_t length);
     100#endif
    97101    static void ppmWrite(const char *prefix);
    98102    static void sendDataToClient(const char *command, const char *data,
     
    104108    static TransferFunction *defineTransferFunction(const char *name,
    105109                                                    size_t n, float *data);
    106 
    107     static int render2dContour(HeightMap *heightmap, int width, int height);
    108110
    109111    static int renderLegend(TransferFunction *tf, double min, double max,
     
    183185#if PLANE_CMD
    184186    static int numPlanes;
    185     static Texture2D *plane[];          ///< Pointers to 2D planes
     187    static Texture2D *plane[]; ///< Pointers to 2D planes
    186188#endif
    187189#ifdef USE_POINTSET_RENDERER
     
    193195    static struct timeval startTime;           /* Start of elapsed time. */
    194196private:
    195     static float _licSlice;             ///< Slice position [0,1]
    196     static int _licAxis;                ///< Slice axis: 0:x, 1:y, 2:z
     197    static float _licSlice;  ///< Slice position [0,1]
     198    static int _licAxis;     ///< Slice axis: 0:x, 1:y, 2:z
    197199
    198200    //frame buffer for final rendering
  • trunk/packages/vizservers/nanovis/protocol-nanovis.txt

    r2974 r3362  
    4242grid visible <false|true>
    4343
    44 camera angle <xAngle(phi)> <yAngle(theta)> <zAngle(psi)>
     44camera angle <xAngle> <yAngle> <zAngle>
    4545camera orient <quatW> <quatX> <quatY> <quatZ>
    4646camera pan <x> <y>
     47camera pos <x> <y> <z>
    4748camera zoom <factor>
    4849
     
    99100
    100101<flowObj> configure <?option value...?>
     102          -ambient <val>
    101103          -arrows <bool>
    102104          -axis <x|y|z>
     
    108110           val = [0,100], or %val = [0,1]
    109111          -slice <bool>
    110           -specular <val>
     112          -specularExp <val>
     113          -specularLevel <val>
    111114          -transferfunction <name>
    112115          -volume <bool>
     
    133136volume outline color <r> <g> <b> <?names?>
    134137volume outline state|visible <bool> <?names?>
     138volume shading ambient <value> <?names?>
    135139volume shading diffuse <value> <?names?>
    136140volume shading isosurface <bool> <?names?>
    137141volume shading opacity <value> <?names?>
    138 volume shading specular <value> <?names?>
     142volume shading specularExp <value> <?names?>
     143volume shading specularLevel <value> <?names?>
    139144volume shading transfunc <tfName> <?names?>
    140145volume state <bool> <?names?>
     
    158163
    159164
    160 --- Colormaped Plane (if PLANE_CMD=1 in config.h) ---
     165--- Colormaped Plane (if PLANE_CMD is defined in config.h) ---
    161166plane active <planeIdx>
    162167      Set the active plane [0,9], or -1 to disable
     
    168173      Enable a plane for rendering using the given transfer
    169174      function.  Plane must first be added.
    170 --- End Colormaped Plane (if PLANE_CMD=1 in config.h) ---
     175--- End Colormaped Plane (if PLANE_CMD is defined in config.h) ---
    171176
    172177================================================================================
  • trunk/packages/vizservers/nanovis/shaders/one_volume.cg

    r3177 r3362  
    1414#include "common.cg"
    1515
     16//#define LIGHT_TWO_SIDE
     17
    1618/*
    1719 * render one volume
    1820 *
    19  * renderParameters:
    20  *   x: number of slices
    21  *   y: opacity scale (1-21)
    22  *   z: diffuse coefficient
     21 * material:
     22 *   x: ambient coefficient
     23 *   y: diffuse coefficient
     24 *   z: specular level/coefficient
    2325 *   w: specular exponent
    24  * options:
    25  *   y = isosurface flag (opacity scaling on/off)
     26 * renderParams:
     27 *   x: sample distance ratio (0 = single slice)
     28 *   y: isosurface flag (opacity scaling on/off)
     29 *   z: opacity scale
     30 *   w: two-sided lighting
    2631 */
    2732PixelOut main(v2f IN,
     
    3035              uniform float4x4 modelViewInv,
    3136              uniform float4x4 modelView,
    32               uniform float4 renderParameters,
    33               uniform float4 options)
     37              uniform float4 material,
     38              uniform float4 renderParams)
    3439{
    3540    PixelOut OUT;
     
    4045    float4 color = tex1D(tf, sample.x);
    4146
    42     if (renderParameters.x < 0.5) {
     47    if (renderParams.x == 0.0) {
    4348        //If single slice render, only flat shading, completely opaque.
    4449        color.w = 1;
     
    4651        //regular volume rendering, we do PHONG SHADING
    4752        //lighting parameters
    48 #if 1
    4953        float3 normal;
    5054        float diffuse, specular;
     
    6064            //lighting computation
    6165#ifndef LIGHT_TWO_SIDE
    62             float normal_dot_light = max(dot(normal, light_vector), 0);
    63             float normal_dot_half = max(dot(normal, half_vector), 0);
     66            float normal_dot_light = dot(normal, light_vector);
     67            float normal_dot_half = dot(normal, half_vector);
     68            if (renderParams.w > 0.5) {
     69                normal_dot_light = abs(normal_dot_light);
     70                normal_dot_half = abs(normal_dot_half);
     71            } else {
     72                normal_dot_light = max(normal_dot_light, 0);
     73                normal_dot_half = max(normal_dot_half, 0);
     74            }
    6475#else
    65             float normal_dot_light = dot(normal, light_vector);
    66             if (normal_dot_light < 0.0) {
    67                 normal_dot_light = dot(-normal, light_vector);
    68             }
    69             float normal_dot_half = dot(normal, half_vector);
    70             if (normal_dot_half < 0.0) {
    71                 normal_dot_half = dot(-normal, half_vector);
    72             }
     76            float normal_dot_light = abs(dot(normal, light_vector));
     77            float normal_dot_half = abs(dot(normal, half_vector));
    7378#endif
    74             diffuse = normal_dot_light * renderParameters.z;
    75             //specular = pow(normal_dot_half, renderParameters.w)*(1-ambient-diffuse);
     79            diffuse = normal_dot_light * material.y;
    7680            if (diffuse > 1.0e-6)
    77                 specular = pow(normal_dot_half, 90.)*0.3;
     81                specular = pow(normal_dot_half, material.w) * material.z;
    7882            else
    7983                specular = 0.0;
    8084        }
    81         float ambient = max(.2, 1.0 - renderParameters.z);
     85        float ambient = material.x;
    8286
    83         float lighting = ambient + diffuse + specular;
    84         color.xyz = color.xyz * ambient + color.xyz * diffuse + float3(specular);
    85 #else
    86         if (dot(sample.yzw, sample.yzw) < 5.0e-5) {
    87             color.xyz = float3(0);
    88         } else {
    89             color.xyz = normalize(sample.yzw);
    90         }
    91 #endif
     87        color.xyz = color.xyz * (ambient + diffuse) + float3(specular);
    9288
    93         if (options.y < 0.5) {
    94             //opacity is modulated by the number of total slices
    95             //to avoid very opaque volume when number of slices is high
    96             // renderParameters.x = number of slices
    97             // renderParameters.y = opacity scale (1-21)
    98             color.w = color.w * renderParameters.y/renderParameters.x;
     89        if (renderParams.y < 0.5) {
     90            // Opacity scaling: equivalent to scaling transfer function
     91            color.w = color.w * renderParams.z;
     92            // Apply opacity correction for ratio of current sample distance
     93            // to data set sample distance
     94            color.w = (1.0 - pow((1.0 - color.w), renderParams.x));
    9995        }
    10096    }
    10197
    102   OUT.Color = min(max(color, 0.0), 1.0);
    103 
    104   return OUT;
     98    OUT.Color = min(max(color, 0.0), 1.0);
     99    return OUT;
    105100}
  • trunk/packages/vizservers/nanovis/shaders/zincblende_volume.cg

    r3177 r3362  
    1515
    1616/*
    17  * zincblende shading fragment program:
     17 * zincblende shading fragment program
     18 *
     19 * renderParams:
     20 *   x: sample distance ratio (0 = single slice)
     21 *   y: isosurface flag (opacity scaling on/off)
     22 *   z: opacity scale
    1823 */
    19 
    2024PixelOut main(v2f IN,
    2125              uniform sampler1D tf,
     
    2428              uniform float4 cellSize,
    2529              uniform float4x4 modelViewInv,
    26               uniform float4 renderParameters,
    27               uniform float4 options)
     30              uniform float4 renderParams)
    2831
    2932{
     
    5760    */
    5861
    59     //sample transfor function texture
     62    //sample transfer function texture
    6063    float4 color = f4tex1D(tf, sample);
    6164
    62     if (renderParameters.x < 0.5) {
     65    if (renderParams.x == 0.0) {
    6366        //If single slice render, only flat shading, completely opaque.
    6467        color.w = 1;
     
    6972        //the shader. We might add this later.
    7073
    71         //opacity is modulated by the number of total slices
    72         //to avoid very opaque volume when number of slices is high
    73         color.w = renderParameters.y * color.w / renderParameters.x;
     74        // Opacity scaling: equivalent to scaling transfer function
     75        color.w = color.w * renderParams.z;
     76        // Apply opacity correction for ratio of current sample distance
     77        // to data set sample distance
     78        color.w = (1.0 - pow((1.0 - color.w), renderParams.x));
    7479    }
    7580
Note: See TracChangeset for help on using the changeset viewer.