wmrack-1.4/0002755000175000017500000000000010722410336011714 5ustar xtifrxtifrwmrack-1.4/XPM/0002755000175000017500000000000010722410155012357 5ustar xtifrxtifrwmrack-1.4/XPM/grey/0002755000175000017500000000000010722410155013325 5ustar xtifrxtifrwmrack-1.4/XPM/grey/alphaled.xpm0000644000175000017500000000666007242061424015637 0ustar xtifrxtifr/* XPM */ static char * alphaled[] = { "296 11 4 1", " c #000063180000 s led_color_low", ". c #000000000000 s led_color_back", "X c #0000FFFF0000 s led_color_high", "o c #00009CE60000 s led_color_med", " .XoX. .XoXoX. . .XoX. .XoXoX. .XoXoXoX.XoXoXoX. .XoX. .X. . .X. oXoXo .XoXoXoX.X. . .X.X. . . .X. . .X.X. . .X. .XoX. .XoXoX. . .XoX. .XoXoX. . .XoX. .XoXoXoX.X. . .X.X. . .X.X. . .X.X. . .X.X. . .X.XoXoXoX. .XoX. . . . .X. .XoX. . .XoX. .X. . . .XoXoXoX. . .XoX.XoXoXoX. .XoX. . .XoX. . . . . .", ".o...o..o....o...o...o..o....o..o.......o........o...o..o.....o....X..........o.o....o..o.......oX...Xo.oo....o..o...o..o....o...o...o..o....o...o...o.....X....o.....o.o.....o.o.....o.o.....o.o.....o.......o..o...o.......oo..o...o...o...o..o.......o..........o..........o..o...o...o...o.... .....", "X. . .X.X. . .X.X. . .X.X. . .X.X. . . .X. . . .X. . .X.X. . .X. . o . . . . .X.X. .X. .X. . . .X.X.X.X.X.X. .X.X. . .X.X. . .X.X. . .X.X. . .X.X. . .X. . o . .X. . .X.X. . .X.X. . .X.X. . .X.X. . .X. . . .X.X. .X.X. . .X.X.X. . .X.X. . .X.X. . . .X. . . . .X. . . . . .X.X. . .X.X. . .X. . . . .", "o.....o.o.....o.o.......o.....o.o.......o.......o.......o.....o....X..........o.o..o....o.......o..X..o.o.o...o.o.....o.o.....o.o.....o.o.....o.o..........X....o.....o.o.....o.o.....o..o...o...o...o.......o..o...o.o....o..o.......o.......o.o.......o........o...........o...o...o..o.....o.........", "X. . .X.X. . .X.X. . . .X. . .X.X. . . .X. . . .X. . . .X. . .X. . o . . . . .X.X.X. . .X. . . .X. . .X.X.X. .X.X. . .X.X. . .X.X. . .X.X. . .X. X . . . . o . .X. . .X.X. . .X.X. X .X. .X.X. . .X.X. . . .X. .X. .X.X. .X. .X. . . .X. . . .X.X. .X. .XoXoXo .X.XoX. . . .X. . .XoX. .X. . .X. . . . .", "oXoXoXo.oXoXoX..o.......o.....o.oXoXoX..oXoXoX..o..XoXo.oXoXoXo....X..........o.oo......o.......o.....o.o..o..o.o.....o.o....o..o.....o.o....o....XoX......X....o.....o..o...o..o..o..o....o.......o.......o....o..o..o.......o......o....oXoX..o...o.........o.oo...o......o....o...o...o...oo.........", "X. . .X.X. . .X.X. . . .X. . .X.X. . . .X. . . .X. . .X.X. . .X. . o . . . . .X.X.X. . .X. . . .X. . .X.X. .X.X.X. . .X.XoXoX. .X.X. .X.XoXoX. . . . X . . o . .X. . .X. X . X .X. X .X. .X.X. . . X . . .X. . .X.X. .X. . . .X. . .X. . . . .X.XoXoXoX. . . .X.X. . .X. . .X. .X. . .X. .XoX.X. . . . .", "o.....o.o.....o.o.......o.....o.o.......o.......o.....o.o.....o....X..........o.o..o....o.......o.....o.o...o.o.o.....o.o.......o..o..o.o..o..........o....X....o.....o...o.o....o.o.o...o...o.....o.....o......o.o...o.......o....o..........o.....o.........o.o.....o....o....o.....o......o..........", "X. . .X.X. . .X.X. . .X.X. . .X.X. . . .X. . . .X. . .X.X. . .X. . o . .X. . .X.X. .X. .X. . . .X. . .X.X. .X.X.X. . .X.X. . . .X. .X.X.X. .X. .X. . .X. . o . .X. . .X. .X.X. . X X X .X. . .X. . X . .X. . . .X.X. .X. . . .X. .X. . .X. . .X. . .X. .X. . .X.X. . .X. .X. . .X. . .X. . .X. . . . . .", "o.....o.o....o...o...o..o....o..o.......o........o...o..o.....o....X.....o...o..o....o..o.......o.....o.o....oo..o...o..o........o...o..o....o...o...o.....X.....o...o.....o......o.o...o.....o....o....o........o...o........o..o.......o...o......o....o...o...o...o....o......o...o.....o............", "X. . .X.XoXoX. . .XoX. .XoXoX. .XoXoXoX.X. . . . .XoX. .X. . .X. oXoXo . .XoX. .X. . .X.XoXoXoX.X. . .X.X. . .X. .XoX. .X. . . . .XoX.X.X. . .X. .XoX. . . o . . .XoX. . . X . . .X.X. .X. . .X. . X . .XoXoXoX. .XoX. . . . .X.XoXoXoX. .XoX. . . .X. . .XoX. . .XoX. . .X. . . .XoX. .XoX. . . . . . ."}; wmrack-1.4/XPM/grey/cdnodisc.xpm0000644000175000017500000000526607242061426015656 0ustar xtifrxtifr/* XPM */ static char * cdnodisc[] = { "48 48 8 1", " c #631863186318", ". c #318C318C318C", "X c #9CE69CE69CE6", "o c #000000000000 s led_color_back", "O c #CE72CE72CE72", "+ c none", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ", " ..............................................O", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXO", " OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "OOOOOOOOOOOOO++++OOOOOOOOOOOOOO++++OOOOOOOOOOOOO", "OXXXXXXXXXXXa++++OXXXXXXXXXXXXa++++OXXXXXXXXXXXa", "OX .a++++OX @ .a++++OX .a", "OX .a++++OX @ @ .a++++OX .a", "OX @ .a++++OX @@ @ .a++++OX @ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @ .a", "OX @@@@@ .a++++OX @@@ @ .a++++OX @@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @@@ .a", "OX @ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX .a++++OX @ @ .a++++OX .a", "OX .a++++OX @ .a++++OX .a", "OX..........a++++OX...........a++++OX..........a", "Oaaaaaaaaaaaa++++Oaaaaaaaaaaaaa++++Oaaaaaaaaaaaa", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++ ++++++++++++++", "++++++++++++++ ..................O++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .XXXXXXXXXXXXXXXXXO++++++++++++++", "++++++++++++++ OOOOOOOOOOOOOOOOOOO++++++++++++++"}; wmrack-1.4/XPM/grey/cdpaused.xpm0000644000175000017500000000526607242061426015660 0ustar xtifrxtifr/* XPM */ static char * cdpaused[] = { "48 48 8 1", " c #631863186318", ". c #318C318C318C", "X c #9CE69CE69CE6", "o c #000000000000 s led_color_back", "O c #CE72CE72CE72", "+ c none", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ", " ..............................................O", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXO", " OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "OOOOOOOOOOOOO++++OOOOOOOOOOOOOO++++OOOOOOOOOOOOO", "OXXXXXXXXXXXa++++OXXXXXXXXXXXXa++++OXXXXXXXXXXXa", "OX .a++++OX @ .a++++OX .a", "OX .a++++OX @ @ .a++++OX .a", "OX @ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@@@@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX .a++++OX @ @ .a++++OX .a", "OX .a++++OX @ .a++++OX .a", "OX..........a++++OX...........a++++OX..........a", "Oaaaaaaaaaaaa++++Oaaaaaaaaaaaaa++++Oaaaaaaaaaaaa", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++ ++++++++++++++", "OOOOOOOOOOOOO+ ..................O+OOOOOOOOOOOOO", "OXXXXXXXXXXXa+ .ooooooooooooooooXO+OXXXXXXXXXXXa", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @@@@@ .a+ .ooooooooooooooooXO+OX @@@@@ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX..........a+ .ooooooooooooooooXO+OX..........a", "Oaaaaaaaaaaaa+ .XXXXXXXXXXXXXXXXXO+Oaaaaaaaaaaaa", "++++++++++++++ OOOOOOOOOOOOOOOOOOO++++++++++++++"}; wmrack-1.4/XPM/grey/cdplaying.xpm0000644000175000017500000000526707242061426016043 0ustar xtifrxtifr/* XPM */ static char * cdplaying[] = { "48 48 8 1", " c #631863186318", ". c #318C318C318C", "X c #9CE69CE69CE6", "o c #000000000000 s led_color_back", "O c #CE72CE72CE72", "+ c none", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ", " ..............................................O", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXO", " OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "OOOOOOOOOOOOO++++OOOOOOOOOOOOOO++++OOOOOOOOOOOOO", "OXXXXXXXXXXXa++++OXXXXXXXXXXXXa++++OXXXXXXXXXXXa", "OX .a++++OX @ .a++++OX .a", "OX .a++++OX @ @ .a++++OX .a", "OX @@ @@ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX @@ @@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@ @@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@ @@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@ @@ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX .a++++OX @ @ .a++++OX .a", "OX .a++++OX @ .a++++OX .a", "OX..........a++++OX...........a++++OX..........a", "Oaaaaaaaaaaaa++++Oaaaaaaaaaaaaa++++Oaaaaaaaaaaaa", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++ ++++++++++++++", "OOOOOOOOOOOOO+ ..................O+OOOOOOOOOOOOO", "OXXXXXXXXXXXa+ .ooooooooooooooooXO+OXXXXXXXXXXXa", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @@@@@ .a+ .ooooooooooooooooXO+OX @@@@@ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX..........a+ .ooooooooooooooooXO+OX..........a", "Oaaaaaaaaaaaa+ .XXXXXXXXXXXXXXXXXO+Oaaaaaaaaaaaa", "++++++++++++++ OOOOOOOOOOOOOOOOOOO++++++++++++++"}; wmrack-1.4/XPM/grey/cdstopped.xpm0000644000175000017500000000526707242061431016052 0ustar xtifrxtifr/* XPM */ static char * cdstopped[] = { "48 48 8 1", " c #631863186318", ". c #318C318C318C", "X c #9CE69CE69CE6", "o c #000000000000 s led_color_back", "O c #CE72CE72CE72", "+ c none", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ", " ..............................................O", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXO", " OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "OOOOOOOOOOOOO++++OOOOOOOOOOOOOO++++OOOOOOOOOOOOO", "OXXXXXXXXXXXa++++OXXXXXXXXXXXXa++++OXXXXXXXXXXXa", "OX .a++++OX @ .a++++OX .a", "OX .a++++OX @ @ .a++++OX .a", "OX @ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @@@ .a", "OX @@@@@ .a++++OX @@@ @ .a++++OX @@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @ .a", "OX @ .a++++OX @@ @ .a++++OX @ .a", "OX .a++++OX @ @ .a++++OX .a", "OX .a++++OX @ .a++++OX .a", "OX..........a++++OX...........a++++OX..........a", "Oaaaaaaaaaaaa++++Oaaaaaaaaaaaaa++++Oaaaaaaaaaaaa", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++ ++++++++++++++", "OOOOOOOOOOOOO+ ..................O+OOOOOOOOOOOOO", "OXXXXXXXXXXXa+ .ooooooooooooooooXO+OXXXXXXXXXXXa", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @@@@@ .a+ .ooooooooooooooooXO+OX @@@@@ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX..........a+ .ooooooooooooooooXO+OX..........a", "Oaaaaaaaaaaaa+ .XXXXXXXXXXXXXXXXXO+Oaaaaaaaaaaaa", "++++++++++++++ OOOOOOOOOOOOOOOOOOO++++++++++++++"}; wmrack-1.4/XPM/grey/led.xpm0000644000175000017500000000265707242061431014631 0ustar xtifrxtifr/* XPM */ static char * cdled[] = { "110 11 4 1", " c #000000000000 s led_color_back", ". c #0000FFFF0000 s led_color_high", "X c #00009E790000 s led_color_med", "o c #000061850000 s led_color_low", " ..... X X X ..... ..... X o X ..... ..... ..... ..... ..... X X X ... XoX .. Xo ", ". oXo . o . X oXo . X oXo . . . . oXo X . oXo X o XoX . . oXo . . oXo . o X . X . . o o ", ".X X. X. X. X. .X X. .X .X o. .X X. .X X. X. oX . o .. Xo ", ".X X. X. X. X. .X X. .X .X o. .X X. .X X. .X Xo . X . . o o ", ". . X . X XoX . o XoX . . oXo . . oXo X . oXo X o . . oXo . . oXo . X o . . X X ", " X o X o X o ..... ..... ..... ..... ..... X X X ..... ..... o X X ... oXo ", ". . X . . oXo X X oXo . X oXo . o XoX . . oXo . X . . oXo . o XoX . X o . X ", ".X X. X. .X X. X. o. .X X. o. .X X. o. X. oX . . X X .. Xo ", ".X X. X. .X X. X. o. .X X. o. .X X. o. .X Xo ... ooo . . o X ", ". oXo . X . . oXo X o XoX . X . o XoX . . oXo . X . . oXo . o XoX . X X . . X X . o ", " ..... o X o ..... ..... o X o ..... ..... X X X ..... ..... X X o . . o o . X "}; wmrack-1.4/XPM/grey/mixer.xpm0000644000175000017500000000526307242061431015205 0ustar xtifrxtifr/* XPM */ static char * mixer[] = { "48 48 8 1", " c #631863186318", ". c none", "X c #318C318C318C", "o c #9CE69CE69CE6", "O c #000000000000 s led_color_back", "+ c #CE72CE72CE72", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ... ... ", " XXXXXXXXX+... XXXXXXXXXXXXXXXXXX+... XXXXXXXXX+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... Xooooooooooooooooo+... XOOOOOOOo+", " XOOOOOOOo+... +++++++++++++++++++... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+......++++++++++++++...... XOOOOOOOo+", " XOOOOOOOo+......+ooooooooooooa...... XOOOOOOOo+", " XOOOOOOOo+......+o Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@ @@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@ @@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@ @@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o Xa...... XOOOOOOOo+", " XOOOOOOOo+......+oXXXXXXXXXXXa...... XOOOOOOOo+", " XOOOOOOOo+......+aaaaaaaaaaaaa...... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+......++++++++++++++...... XOOOOOOOo+", " XOOOOOOOo+......+ooooooooooooa...... XOOOOOOOo+", " XOOOOOOOo+......+o Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o O O Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o oO Oo Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o oO Oo Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o oOo Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o OoO Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o Oo oO Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o Oo oO Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o Xa...... XOOOOOOOo+", " Xoooooooo+......+oXXXXXXXXXXXa...... Xoooooooo+", " ++++++++++......+aaaaaaaaaaaaa...... ++++++++++", "................................................"}; wmrack-1.4/XPM/grey/mixled.xpm0000644000175000017500000000527207242061431015343 0ustar xtifrxtifr/* XPM */ static char * mixled[] = { "58 39 10 1", " c #000063180000 s led_color_low", ". c #00009CE60000 s led_color_med", "X c #FFFF00000000", "o c #0000FFFF0000 s led_color_high", "O c #CE72CE72CE72", "+ c #9CE69CE69CE6", "@ c #000000000000 s led_color_back", "# c #631863186318", "$ c #318C318C318C", "a c #000000000000", " . X . X . X . X . X . X . X . X . X . XoooXOOOOOOOOOOOOOO", ". .X. .X. .X. .X. .X. .X. .X. .X. .X. .XoooXO++++++++++++a", " . X . X . X . X . X . X . X . X . X . XoooXO+######o###$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+###o###o##$a", " . X . X . X . X . X . X . X . X . XoooXoooXO+##oo#o####$a", ". .X. .X. .X. .X. .X. .X. .X. .X. .XoooXoooXO+#ooo####o#$a", " . X . X . X . X . X . X . X . X . XoooXoooXO+#ooo##o###$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+#ooo####o#$a", " . X . X . X . X . X . X . X . XoooXoooXoooXO+##oo#o####$a", ". .X. .X. .X. .X. .X. .X. .X. .XoooXoooXoooXO+###o###o##$a", " . X . X . X . X . X . X . X . XoooXoooXoooXO+######o###$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+$$$$$$$$$$$a", " . X . X . X . X . X . X . XoooXoooXoooXoooXOaaaaaaaaaaaaa", ". .X. .X. .X. .X. .X. .X. .XoooXoooXoooXoooXaaaaaaaaaaaaaa", " . X . X . X . X . X . X . XoooXoooXoooXoooXa$$$$$$$$$$$$O", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@Xa$#######o##+O", " . X . X . X . X . X . XoooXoooXoooXoooXoooXa$###ooo#o##+O", ". .X. .X. .X. .X. .X. .XoooXoooXoooXoooXoooXa$##o###oo##+O", " . X . X . X . X . X . XoooXoooXoooXoooXoooXa$#o#####o##+O", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@Xa$#o#####o##+O", " . X . X . X . X . XoooXoooXoooXoooXoooXoooXa$#o#####o##+O", ". .X. .X. .X. .X. .XoooXoooXoooXoooXoooXoooXa$##o###oo##+O", " . X . X . X . X . XoooXoooXoooXoooXoooXoooXa$###ooo#o##+O", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@Xa$#######o##+O", " . X . X . X . XoooXoooXoooXoooXoooXoooXoooXa$+++++++++++O", ". .X. .X. .X. .XoooXoooXoooXoooXoooXoooXoooXaOOOOOOOOOOOOO", " . X . X . X . XoooXoooXoooXoooXoooXoooXoooXOOOOOOOOOOOOOO", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO++++++++++++a", " . X . X . XoooXoooXoooXoooXoooXoooXoooXoooXO+##########$a", ". .X. .X. .XoooXoooXoooXoooXoooXoooXoooXoooXO+##@#####@#$a", " . X . X . XoooXoooXoooXoooXoooXoooXoooXoooXO+##+@###@+#$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+###+@#@+##$a", " . X . XoooXoooXoooXoooXoooXoooXoooXoooXoooXO+####+@+###$a", ". .X. .XoooXoooXoooXoooXoooXoooXoooXoooXoooXO+####@+@###$a", " . X . XoooXoooXoooXoooXoooXoooXoooXoooXoooXO+###@+#+@##$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+##@+###+@#$a", " . XoooXoooXoooXoooXoooXoooXoooXoooXoooXoooXO+##########$a", ". .XoooXoooXoooXoooXoooXoooXoooXoooXoooXoooXO+$$$$$$$$$$$a", " . XoooXoooXoooXoooXoooXoooXoooXoooXoooXoooXOaaaaaaaaaaaaa"}; wmrack-1.4/XPM/.cvsignore0000644000175000017500000000003407242061403014353 0ustar xtifrxtifrtmp standart.style Makefile wmrack-1.4/XPM/Makefile.in0000644000175000017500000000062207242061403014423 0ustar xtifrxtifr INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ LN = @LN_S@ prefix = @prefix@ exec_prefix = @exec_prefix@ BINDIR = @bindir@ MANDIR = @mandir@ LIBDIR = @libdir@/WMRack standart.style: grey.style $(LN) grey.style standart.style install: mkdir -p $(LIBDIR) for style in *.style; do \ if test "$${style}" != "standart.style"; then \ $(INSTALL_DATA) $${style} $(LIBDIR); \ fi \ done wmrack-1.4/XPM/README0000644000175000017500000000207707242061403013244 0ustar xtifrxtifr*.style files can be loaded using the -style option of wmrack You can define your standart style by linking standart.style to the style of your choice before compilation using: ln -sf .style standart.style cd_mask.xpm is the standart mask of on of the window faces. mixer_mask.xpm is the standart mask of the mixer window face. led.xpm are the digits and signs for the cdplayer. mixled.xpm these are the scales and source buttons of the mixer. alphaled.xpm this is a Dot-LED style characterset (uppercase + digits). you need for pixmaps (the names must be the name of the XPM): cdnodisc (do not include any track +/- buttons) cdpaused cdplaying cdstopped mixer mixled (this must be changed because of the recsrc button) plus (until now not really needed, the compiletime default will do): led alphaled cat all eight into one file using for example: 'cat no.xpm pl.xpm pau.xpm sto.xpm mix.xpm led.xpm mixled.xpm alpha.xpm >a.style' If you want to submit new styles to the WMRack distribution, send them to Oliver Graf . wmrack-1.4/XPM/cd-mask.xpm0000644000175000017500000000512607242061403014427 0ustar xtifrxtifr/* XPM */ static char *sample_mask[] = { /* columns rows colors chars-per-pixel */ "48 48 3 1", " c Black", ". c Gray50", "X c None", /* pixels */ "................................................", "................................................", ".. ..", ".. ..", ".. ..", ".. ..", ".. ..", ".. ..", ".. ..", ".. ..", ".. ..", ".. ..", ".. ..", "................................................", "................................................", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", ".............XXXX..............XXXX.............", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXX....................XXXXXXXXXXXXXX", ".............X....................X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X.. ..X.............", ".............X....................X.............", "XXXXXXXXXXXXXX....................XXXXXXXXXXXXXX" }; wmrack-1.4/XPM/clean.style0000644000175000017500000005075207242061413014534 0ustar xtifrxtifr/* * 'clean' style created by * * named after the schumacher-clean font * */ /* XPM */ static char * alphaled[] = { "296 11 2 1", " s led_color_back c black", ". s led_color_high c green", " .... . .... .... .. ...... ... ...... .... .... ", " . ...... .... ..... ....... ....... .... . . ..... ... . . . . . . . ... ...... ... ...... ..... ....... . . . . . . . . . . ....... . . .. . . . . .. . . . . . . . . ", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", " ... . . . . . . . . . . . . . . . .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", " . . . . . . . . . . . . . . . . . .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... . . ..... ..... . .... . . ", " . . ...... . . . ..... ..... . ....... . . .. . . . . . . . . . . ...... . . ...... ..... . . . . . . . . . . . . . . . . . . . . . . . . . ..... ", " ..... . . . . . . . . ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", " . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . .. .. . . . . . . . . . ...... . . . . . . . ", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. . . . . . . . . . . . . . . . . . . . ", " .. .. ...... .... ..... ....... . ..... . . ..... .... . . ...... . . . . ... . ... . . ..... . ..... . . . . . . ....... .... . ...... .... ... .... .... . .... ... ", " "}; /* XPM */ static char * cdnodisc[] = { "48 48 6 1", " c #318C318C318C", ". c #631863186318", "X s led_color_back c black", "o c #CE72CE72CE72", "O c none", "+ s led_color_high c green", " .", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", ".ooooooooooooooooooooooooooooooooooooooooooooooo", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "oooooooooooo.OOOOooooooooooooo.OOOOoooooooooooo.", "oXXXXXXXXXXX OOOOoXXXXXXXXXXXX OOOOoXXXXXXXXXXX ", "oXXXXXXXXXXX OOOOoXXXXXX++XXXX OOOOoXXXXX+XXXXX ", "oXX+++XXXXXX OOOOoXXXXX+++X+XX OOOOoXXXX+++XXXX ", "oXX+X++XXXXX OOOOoXX++++X+XXXX OOOOoXXX++X++XXX ", "oXX+XX++XXXX OOOOoXX+X+XX+XXXX OOOOoXX++XXX++XX ", "oXX+XXX++XXX OOOOoXX+X+XX+XX+X OOOOoXX+XXXXX+XX ", "oXX+XX++XXXX OOOOoXX+X+XX+XXXX OOOOoXX+++++++XX ", "oXX+X++XXXXX OOOOoXX++++X+XXXX OOOOoXXXXXXXXXXX ", "oXX+++XXXXXX OOOOoXXXXX+++X+XX OOOOoXX+++++++XX ", "oXXXXXXXXXXX OOOOoXXXXXX++XXXX OOOOoXXXXXXXXXXX ", "oXXXXXXXXXXX OOOOoXXXXXXXXXXXX OOOOoXXXXXXXXXXX ", ". OOOO. OOOO. ", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOO .OOOOOOOOOOOOOOO", "oooooooooooo.OO XOXOXOXOXOXOXOXOoOOoooooooooooo.", "oXOXOXOXOXOX OO OXOXOXOXOXOXOXOXoOOoXOXOXOXOXOX ", "oOXOXOXOXOXO OO XOXOXOXOXOXOXOXOoOOoOXOXOXOXOXO ", "oXO+OXO+O+OX OO OXOXOXOXOXOXOXOXoOOoXO+O+OXO+OX ", "oOXOXO+OXOXO OO XOXOXOXOXOXOXOXOoOOoOXOXO+OXOXO ", "oXO+O+OXO+OX OO OXOXOXOXOXOXOXOXoOOoXO+OXO+O+OX ", "oOXO+OXOXOXO OO XOXOXOXOXOXOXOXOoOOoOXOXOXO+OXO ", "oXO+O+OXO+OX OO OXOXOXOXOXOXOXOXoOOoXO+OXO+O+OX ", "oOXOXO+OXOXO OO XOXOXOXOXOXOXOXOoOOoOXOXO+OXOXO ", "oXO+OXO+O+OX OO OXOXOXOXOXOXOXOXoOOoXO+O+OXO+OX ", "oOXOXOXOXOXO OO XOXOXOXOXOXOXOXOoOOoOXOXOXOXOXO ", "oXOXOXOXOXOX OO OXOXOXOXOXOXOXOXoOOoXOXOXOXOXOX ", ".. OO XOXOXOXOXOXOXOXXoOO. ", "OOOOOOOOOOOOOOO.oooooooooooooooooOOOOOOOOOOOOOOO"}; /* XPM */ static char * cdpaused[] = { "48 48 7 1", " c #318C318C318C", ". c #631863186318", "X s led_color_back c black", "o c #CE72CE72CE72", "O c #9CE69CE69CE6", "+ c none", "@ s led_color_high c green", " .", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", "Oooooooooooooooooooooooooooooooooooooooooooooooo", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "ooooooooooooO++++oooooooooooooO++++ooooooooooooO", "oXXXXXXXXXXX ++++oXXXXXXXXXXXX ++++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++++oXXXXXX@@XXXX ++++oXXXXXXXXXXX ", "oXX@@@XXXXXX ++++oXXXXX@@@XXXX ++++oXX@@@@@@@XX ", "oXX@X@@XXXXX ++++oXX@@@@X@X@XX ++++oXX@XXXXX@XX ", "oXX@XX@@XXXX ++++oXX@X@XX@XXXX ++++oXX@XXXXX@XX ", "oXX@XXX@@XXX ++++oXX@X@XX@XX@X ++++oXX@XXXXX@XX ", "oXX@XX@@XXXX ++++oXX@X@XX@XXXX ++++oXX@XXXXX@XX ", "oXX@X@@XXXXX ++++oXX@@@@X@X@XX ++++oXX@XXXXX@XX ", "oXX@@@XXXXXX ++++oXXXXX@@@XXXX ++++oXX@@@@@@@XX ", "oXXXXXXXXXXX ++++oXXXXXX@@XXXX ++++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++++oXXXXXXXXXXXX ++++oXXXXXXXXXXX ", "O ++++O ++++O ", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "+++++++++++++++ O+++++++++++++++", "ooooooooooooO++ XXXXXXXXXXXXXXXXo++ooooooooooooO", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "oXX@XXX@@@XX ++ XXXXXXXXXXXXXXXXo++oXX@@@XXX@XX ", "oXX@XX@@X@XX ++ XXXXXXXXXXXXXXXXo++oXX@X@@XX@XX ", "oXX@X@@XX@XX ++ XXXXXXXXXXXXXXXXo++oXX@XX@@X@XX ", "oXX@@@XXX@XX ++ XXXXXXXXXXXXXXXXo++oXX@XXX@@@XX ", "oXX@X@@XX@XX ++ XXXXXXXXXXXXXXXXo++oXX@XX@@X@XX ", "oXX@XX@@X@XX ++ XXXXXXXXXXXXXXXXo++oXX@X@@XX@XX ", "oXX@XXX@@@XX ++ XXXXXXXXXXXXXXXXo++oXX@@@XXX@XX ", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "O ++ XXXXXXXXXXXXXXXXo++O ", "+++++++++++++++Oooooooooooooooooo+++++++++++++++"}; /* XPM */ static char * cdplaying[] = { "48 48 7 1", " c #318C318C318C", ". c #631863186318", "X s led_color_back c black", "o c #CE72CE72CE72", "O c #9CE69CE69CE6", "+ c none", "@ s led_color_high c green", " .", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", "Oooooooooooooooooooooooooooooooooooooooooooooooo", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "ooooooooooooO++++oooooooooooooO++++ooooooooooooO", "oXXXXXXXXXXX ++++oXXXXXXXXXXXX ++++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++++oXXXXXX@@XXXX ++++oXXXXXXXXXXX ", "oXX@@@X@@@XX ++++oXXXXX@@@XXXX ++++oXX@@@@@@@XX ", "oXX@X@X@X@XX ++++oXX@@@@X@X@XX ++++oXX@XXXXX@XX ", "oXX@X@X@X@XX ++++oXX@X@XX@XXXX ++++oXX@XXXXX@XX ", "oXX@X@X@X@XX ++++oXX@X@XX@XX@X ++++oXX@XXXXX@XX ", "oXX@X@X@X@XX ++++oXX@X@XX@XXXX ++++oXX@XXXXX@XX ", "oXX@X@X@X@XX ++++oXX@@@@X@X@XX ++++oXX@XXXXX@XX ", "oXX@@@X@@@XX ++++oXXXXX@@@XXXX ++++oXX@@@@@@@XX ", "oXXXXXXXXXXX ++++oXXXXXX@@XXXX ++++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++++oXXXXXXXXXXXX ++++oXXXXXXXXXXX ", "O ++++O ++++O ", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "+++++++++++++++ O+++++++++++++++", "ooooooooooooO++ XXXXXXXXXXXXXXXXo++ooooooooooooO", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "oXX@XXX@@@XX ++ XXXXXXXXXXXXXXXXo++oXX@@@XXX@XX ", "oXX@XX@@X@XX ++ XXXXXXXXXXXXXXXXo++oXX@X@@XX@XX ", "oXX@X@@XX@XX ++ XXXXXXXXXXXXXXXXo++oXX@XX@@X@XX ", "oXX@@@XXX@XX ++ XXXXXXXXXXXXXXXXo++oXX@XXX@@@XX ", "oXX@X@@XX@XX ++ XXXXXXXXXXXXXXXXo++oXX@XX@@X@XX ", "oXX@XX@@X@XX ++ XXXXXXXXXXXXXXXXo++oXX@X@@XX@XX ", "oXX@XXX@@@XX ++ XXXXXXXXXXXXXXXXo++oXX@@@XXX@XX ", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "O ++ XXXXXXXXXXXXXXXXo++O ", "+++++++++++++++Oooooooooooooooooo+++++++++++++++"}; /* XPM */ static char * cdstopped[] = { "48 48 7 1", " c #318C318C318C", ". c #631863186318", "X s led_color_back c black", "o c #CE72CE72CE72", "O c #9CE69CE69CE6", "+ c none", "@ s led_color_high c green", " .", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo", "Oooooooooooooooooooooooooooooooooooooooooooooooo", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "ooooooooooooO++++oooooooooooooO++++ooooooooooooO", "oXXXXXXXXXXX ++++oXXXXXXXXXXXX ++++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++++oXXXXXX@@XXXX ++++oXXXXX@XXXXX ", "oXX@@@XXXXXX ++++oXXXXX@@@XXXX ++++oXXXX@@@XXXX ", "oXX@X@@XXXXX ++++oXX@@@@X@X@XX ++++oXXX@@X@@XXX ", "oXX@XX@@XXXX ++++oXX@X@XX@XXXX ++++oXX@@XXX@@XX ", "oXX@XXX@@XXX ++++oXX@X@XX@XX@X ++++oXX@XXXXX@XX ", "oXX@XX@@XXXX ++++oXX@X@XX@XXXX ++++oXX@@@@@@@XX ", "oXX@X@@XXXXX ++++oXX@@@@X@X@XX ++++oXXXXXXXXXXX ", "oXX@@@XXXXXX ++++oXXXXX@@@XXXX ++++oXX@@@@@@@XX ", "oXXXXXXXXXXX ++++oXXXXXX@@XXXX ++++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++++oXXXXXXXXXXXX ++++oXXXXXXXXXXX ", "O ++++O ++++O ", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "+++++++++++++++ O+++++++++++++++", "ooooooooooooO++ XXXXXXXXXXXXXXXXo++ooooooooooooO", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "oXX@XXX@@@XX ++ XXXXXXXXXXXXXXXXo++oXX@@@XXX@XX ", "oXX@XX@@X@XX ++ XXXXXXXXXXXXXXXXo++oXX@X@@XX@XX ", "oXX@X@@XX@XX ++ XXXXXXXXXXXXXXXXo++oXX@XX@@X@XX ", "oXX@@@XXX@XX ++ XXXXXXXXXXXXXXXXo++oXX@XXX@@@XX ", "oXX@X@@XX@XX ++ XXXXXXXXXXXXXXXXo++oXX@XX@@X@XX ", "oXX@XX@@X@XX ++ XXXXXXXXXXXXXXXXo++oXX@X@@XX@XX ", "oXX@XXX@@@XX ++ XXXXXXXXXXXXXXXXo++oXX@@@XXX@XX ", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "oXXXXXXXXXXX ++ XXXXXXXXXXXXXXXXo++oXXXXXXXXXXX ", "O ++ XXXXXXXXXXXXXXXXo++O ", "+++++++++++++++Oooooooooooooooooo+++++++++++++++"}; /* XPM */ static char * cdled[] = { "110 11 2 1", " s led_color_back c black", ". s led_color_high c green", " .... . .... .... .. ...... ... ...... .... .... ... .. ", ". . .. . . . . .. . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . .. ", ". . . . . . . . . . . . . . . . . ", ". . . . ... . . ..... ..... . .... . . . . ", ". . . . . . . . . . . . . ..... ... ", ". . . . . . . . . . . . . . . ", ". . . . . ...... . . . . . . . . . . .. ", ". . . . . . . . . . . . . . . ... . ", " .... . ...... .... ... .... .... . .... ... . . . ", " . . . "}; /* XPM */ static char * mixer[] = { "48 48 6 1", " c #318C318C318C", ". c #631863186318", "X c none", "o s led_color_back c black", "O c #CE72CE72CE72", "+ s led_color_high c green", " .XXX .XXX .", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX ooooooooooooooooooOXXX oooooooooO", " oooooooooOXXX.OOOOOOOOOOOOOOOOOOOXXX oooooooooO", " oooooooooOXXXXXXXXXXXXXXXXXXXXXXXXXX oooooooooO", " oooooooooOXXXXXXXXXXXXXXXXXXXXXXXXXX oooooooooO", " oooooooooOXXXXXXXXXXXXXXXXXXXXXXXXXX oooooooooO", " oooooooooOXXXXXXOOOOOOOOOOOOO.XXXXXX oooooooooO", " oooooooooOXXXXXXOoooooooooooo XXXXXX oooooooooO", " oooooooooOXXXXXXOoooooooooooo XXXXXX oooooooooO", " oooooooooOXXXXXXOoooo++++oooo XXXXXX oooooooooO", " oooooooooOXXXXXXOooo++oo++ooo XXXXXX oooooooooO", " oooooooooOXXXXXXOoo++oooo++oo XXXXXX oooooooooO", " oooooooooOXXXXXXOoo+oo++oo+oo XXXXXX oooooooooO", " oooooooooOXXXXXXOoo++oooo++oo XXXXXX oooooooooO", " oooooooooOXXXXXXOooo++oo++ooo XXXXXX oooooooooO", " oooooooooOXXXXXXOoooo++++oooo XXXXXX oooooooooO", " oooooooooOXXXXXXOoooooooooooo XXXXXX oooooooooO", " oooooooooOXXXXXXOoooooooooooo XXXXXX oooooooooO", " oooooooooOXXXXXX. XXXXXX oooooooooO", " oooooooooOXXXXXXXXXXXXXXXXXXXXXXXXXX oooooooooO", " oooooooooOXXXXXXXXXXXXXXXXXXXXXXXXXX oooooooooO", " oooooooooOXXXXXXXXXXXXXXXXXXXXXXXXXX oooooooooO", " oooooooooOXXXXXX..............XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", " oooooooooOXXXXXX.oooooooooooo.XXXXXX oooooooooO", ".OOOOOOOOOOXXXXXX..............XXXXXX.OOOOOOOOOO", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}; /* XPM */ static char * mixled[] = { "58 39 6 1", " s led_color_back c black", ". c red", "X s led_color_high c green", "o c #CE72CE72CE72", "O c #631863186318", "+ c #318C318C318C", " . . . . . . . . . . X .oooooooooooooO", " . . . . . . . . . . X .o +", " . . . . . . . . . . X .o X +", "X X.X X.X X.X X.X X.X X.X X.X X.X X.XXX.XXX.o XX X +", " . . . . . . . . . X . X .o XX X X +", " . . . . . . . . . X . X .o X X X +", " . . . . . . . . . X . X .o X X X X +", "X X.X X.X X.X X.X X.X X.X X.X X.XXX.XXX.XXX.o X X X +", " . . . . . . . . X . X . X .o XX X X +", " . . . . . . . . X . X . X .o XX X +", " . . . . . . . . X . X . X .o X +", "X X.X X.X X.X X.X X.X X.X X.XXX.XXX.XXX.XXX.o +", " . . . . . . . X . X . X . X .O+++++++++++++", " . . . . . . . X . X . X . X .+++++++++++++O", " . . . . . . . X . X . X . X .+ o", "X X.X X.X X.X X.X X.X X.XXX.XXX.XXX.XXX.XXX.+ X o", " . . . . . . X . X . X . X . X .+ XXX X o", " . . . . . . X . X . X . X . X .+ X X X o", " . . . . . . X . X . X . X . X .+ X XX o", "X X.X X.X X.X X.X X.XXX.XXX.XXX.XXX.XXX.XXX.+ X XX o", " . . . . . X . X . X . X . X . X .+ X XX o", " . . . . . X . X . X . X . X . X .+ X X X o", " . . . . . X . X . X . X . X . X .+ XXX X o", "X X.X X.X X.X X.XXX.XXX.XXX.XXX.XXX.XXX.XXX.+ X o", " . . . . X . X . X . X . X . X . X .+ o", " . . . . X . X . X . X . X . X . X .Oooooooooooooo", " . . . . X . X . X . X . X . X . X . ", "X X.X X.X X.XXX.XXX.XXX.XXX.XXX.XXX.XXX.XXX. ", " . . . X . X . X . X . X . X . X . X . ", " . . . X . X . X . X . X . X . X . X . ", " . . . X . X . X . X . X . X . X . X . ", "X X.X X.XXX.XXX.XXX.XXX.XXX.XXX.XXX.XXX.XXX. ", " . . X . X . X . X . X . X . X . X . X . ", " . . X . X . X . X . X . X . X . X . X . ", " . . X . X . X . X . X . X . X . X . X . ", "X X.XXX.XXX.XXX.XXX.XXX.XXX.XXX.XXX.XXX.XXX. ", " . X . X . X . X . X . X . X . X . X . X . ", " . X . X . X . X . X . X . X . X . X . X . ", " . X . X . X . X . X . X . X . X . X . X . "}; wmrack-1.4/XPM/grey.style0000644000175000017500000005177207242061421014422 0ustar xtifrxtifr/* * This is a WMRack style * * Copyright 1997 by Oliver Graf */ /* XPM */ static char * alphaled[] = { "296 11 4 1", " c #000063180000 s led_color_low", ". c #000000000000 s led_color_back", "X c #0000FFFF0000 s led_color_high", "o c #00009CE60000 s led_color_med", " .XoX. .XoXoX. . .XoX. .XoXoX. .XoXoXoX.XoXoXoX. .XoX. .X. . .X. oXoXo .XoXoXoX.X. . .X.X. . . .X. . .X.X. . .X. .XoX. .XoXoX. . .XoX. .XoXoX. . .XoX. .XoXoXoX.X. . .X.X. . .X.X. . .X.X. . .X.X. . .X.XoXoXoX. .XoX. . . . .X. .XoX. . .XoX. .X. . . .XoXoXoX. . .XoX.XoXoXoX. .XoX. . .XoX. . . . . .", ".o...o..o....o...o...o..o....o..o.......o........o...o..o.....o....X..........o.o....o..o.......oX...Xo.oo....o..o...o..o....o...o...o..o....o...o...o.....X....o.....o.o.....o.o.....o.o.....o.o.....o.......o..o...o.......oo..o...o...o...o..o.......o..........o..........o..o...o...o...o.... .....", "X. . .X.X. . .X.X. . .X.X. . .X.X. . . .X. . . .X. . .X.X. . .X. . o . . . . .X.X. .X. .X. . . .X.X.X.X.X.X. .X.X. . .X.X. . .X.X. . .X.X. . .X.X. . .X. . o . .X. . .X.X. . .X.X. . .X.X. . .X.X. . .X. . . .X.X. .X.X. . .X.X.X. . .X.X. . .X.X. . . .X. . . . .X. . . . . .X.X. . .X.X. . .X. . . . .", "o.....o.o.....o.o.......o.....o.o.......o.......o.......o.....o....X..........o.o..o....o.......o..X..o.o.o...o.o.....o.o.....o.o.....o.o.....o.o..........X....o.....o.o.....o.o.....o..o...o...o...o.......o..o...o.o....o..o.......o.......o.o.......o........o...........o...o...o..o.....o.........", "X. . .X.X. . .X.X. . . .X. . .X.X. . . .X. . . .X. . . .X. . .X. . o . . . . .X.X.X. . .X. . . .X. . .X.X.X. .X.X. . .X.X. . .X.X. . .X.X. . .X. X . . . . o . .X. . .X.X. . .X.X. X .X. .X.X. . .X.X. . . .X. .X. .X.X. .X. .X. . . .X. . . .X.X. .X. .XoXoXo .X.XoX. . . .X. . .XoX. .X. . .X. . . . .", "oXoXoXo.oXoXoX..o.......o.....o.oXoXoX..oXoXoX..o..XoXo.oXoXoXo....X..........o.oo......o.......o.....o.o..o..o.o.....o.o....o..o.....o.o....o....XoX......X....o.....o..o...o..o..o..o....o.......o.......o....o..o..o.......o......o....oXoX..o...o.........o.oo...o......o....o...o...o...oo.........", "X. . .X.X. . .X.X. . . .X. . .X.X. . . .X. . . .X. . .X.X. . .X. . o . . . . .X.X.X. . .X. . . .X. . .X.X. .X.X.X. . .X.XoXoX. .X.X. .X.XoXoX. . . . X . . o . .X. . .X. X . X .X. X .X. .X.X. . . X . . .X. . .X.X. .X. . . .X. . .X. . . . .X.XoXoXoX. . . .X.X. . .X. . .X. .X. . .X. .XoX.X. . . . .", "o.....o.o.....o.o.......o.....o.o.......o.......o.....o.o.....o....X..........o.o..o....o.......o.....o.o...o.o.o.....o.o.......o..o..o.o..o..........o....X....o.....o...o.o....o.o.o...o...o.....o.....o......o.o...o.......o....o..........o.....o.........o.o.....o....o....o.....o......o..........", "X. . .X.X. . .X.X. . .X.X. . .X.X. . . .X. . . .X. . .X.X. . .X. . o . .X. . .X.X. .X. .X. . . .X. . .X.X. .X.X.X. . .X.X. . . .X. .X.X.X. .X. .X. . .X. . o . .X. . .X. .X.X. . X X X .X. . .X. . X . .X. . . .X.X. .X. . . .X. .X. . .X. . .X. . .X. .X. . .X.X. . .X. .X. . .X. . .X. . .X. . . . . .", "o.....o.o....o...o...o..o....o..o.......o........o...o..o.....o....X.....o...o..o....o..o.......o.....o.o....oo..o...o..o........o...o..o....o...o...o.....X.....o...o.....o......o.o...o.....o....o....o........o...o........o..o.......o...o......o....o...o...o...o....o......o...o.....o............", "X. . .X.XoXoX. . .XoX. .XoXoX. .XoXoXoX.X. . . . .XoX. .X. . .X. oXoXo . .XoX. .X. . .X.XoXoXoX.X. . .X.X. . .X. .XoX. .X. . . . .XoX.X.X. . .X. .XoX. . . o . . .XoX. . . X . . .X.X. .X. . .X. . X . .XoXoXoX. .XoX. . . . .X.XoXoXoX. .XoX. . . .X. . .XoX. . .XoX. . .X. . . .XoX. .XoX. . . . . . ."}; /* XPM */ static char * cdnodisc[] = { "48 48 8 1", " c #631863186318", ". c #318C318C318C", "X c #9CE69CE69CE6", "o c #000000000000 s led_color_back", "O c #CE72CE72CE72", "+ c none", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ", " ..............................................O", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXO", " OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "OOOOOOOOOOOOO++++OOOOOOOOOOOOOO++++OOOOOOOOOOOOO", "OXXXXXXXXXXXa++++OXXXXXXXXXXXXa++++OXXXXXXXXXXXa", "OX .a++++OX @ .a++++OX .a", "OX .a++++OX @ @ .a++++OX .a", "OX @ .a++++OX @@ @ .a++++OX @ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @ .a", "OX @@@@@ .a++++OX @@@ @ .a++++OX @@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @@@ .a", "OX @ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX .a++++OX @ @ .a++++OX .a", "OX .a++++OX @ .a++++OX .a", "OX..........a++++OX...........a++++OX..........a", "Oaaaaaaaaaaaa++++Oaaaaaaaaaaaaa++++Oaaaaaaaaaaaa", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++ ++++++++++++++", "++++++++++++++ ..................O++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .ooooooooooooooooXO++++++++++++++", "++++++++++++++ .XXXXXXXXXXXXXXXXXO++++++++++++++", "++++++++++++++ OOOOOOOOOOOOOOOOOOO++++++++++++++"}; /* XPM */ static char * cdpaused[] = { "48 48 8 1", " c #631863186318", ". c #318C318C318C", "X c #9CE69CE69CE6", "o c #000000000000 s led_color_back", "O c #CE72CE72CE72", "+ c none", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ", " ..............................................O", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXO", " OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "OOOOOOOOOOOOO++++OOOOOOOOOOOOOO++++OOOOOOOOOOOOO", "OXXXXXXXXXXXa++++OXXXXXXXXXXXXa++++OXXXXXXXXXXXa", "OX .a++++OX @ .a++++OX .a", "OX .a++++OX @ @ .a++++OX .a", "OX @ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@@@@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX .a++++OX @ @ .a++++OX .a", "OX .a++++OX @ .a++++OX .a", "OX..........a++++OX...........a++++OX..........a", "Oaaaaaaaaaaaa++++Oaaaaaaaaaaaaa++++Oaaaaaaaaaaaa", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++ ++++++++++++++", "OOOOOOOOOOOOO+ ..................O+OOOOOOOOOOOOO", "OXXXXXXXXXXXa+ .ooooooooooooooooXO+OXXXXXXXXXXXa", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @@@@@ .a+ .ooooooooooooooooXO+OX @@@@@ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX..........a+ .ooooooooooooooooXO+OX..........a", "Oaaaaaaaaaaaa+ .XXXXXXXXXXXXXXXXXO+Oaaaaaaaaaaaa", "++++++++++++++ OOOOOOOOOOOOOOOOOOO++++++++++++++"}; /* XPM */ static char * cdplaying[] = { "48 48 8 1", " c #631863186318", ". c #318C318C318C", "X c #9CE69CE69CE6", "o c #000000000000 s led_color_back", "O c #CE72CE72CE72", "+ c none", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ", " ..............................................O", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXO", " OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "OOOOOOOOOOOOO++++OOOOOOOOOOOOOO++++OOOOOOOOOOOOO", "OXXXXXXXXXXXa++++OXXXXXXXXXXXXa++++OXXXXXXXXXXXa", "OX .a++++OX @ .a++++OX .a", "OX .a++++OX @ @ .a++++OX .a", "OX @@ @@ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX @@ @@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@ @@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@ @@ .a++++OX @@@ @ .a++++OX @@@@@ .a", "OX @@ @@ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX .a++++OX @ @ .a++++OX .a", "OX .a++++OX @ .a++++OX .a", "OX..........a++++OX...........a++++OX..........a", "Oaaaaaaaaaaaa++++Oaaaaaaaaaaaaa++++Oaaaaaaaaaaaa", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++ ++++++++++++++", "OOOOOOOOOOOOO+ ..................O+OOOOOOOOOOOOO", "OXXXXXXXXXXXa+ .ooooooooooooooooXO+OXXXXXXXXXXXa", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @@@@@ .a+ .ooooooooooooooooXO+OX @@@@@ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX..........a+ .ooooooooooooooooXO+OX..........a", "Oaaaaaaaaaaaa+ .XXXXXXXXXXXXXXXXXO+Oaaaaaaaaaaaa", "++++++++++++++ OOOOOOOOOOOOOOOOOOO++++++++++++++"}; /* XPM */ static char * cdstopped[] = { "48 48 8 1", " c #631863186318", ". c #318C318C318C", "X c #9CE69CE69CE6", "o c #000000000000 s led_color_back", "O c #CE72CE72CE72", "+ c none", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ", " ..............................................O", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .ooooooooooooooooooooooooooooooooooooooooooooXO", " .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXO", " OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "OOOOOOOOOOOOO++++OOOOOOOOOOOOOO++++OOOOOOOOOOOOO", "OXXXXXXXXXXXa++++OXXXXXXXXXXXXa++++OXXXXXXXXXXXa", "OX .a++++OX @ .a++++OX .a", "OX .a++++OX @ @ .a++++OX .a", "OX @ .a++++OX @@ @ .a++++OX @@@@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @@@ .a", "OX @@@@@ .a++++OX @@@ @ .a++++OX @@@ .a", "OX @@@ .a++++OX @@@ @ .a++++OX @ .a", "OX @ .a++++OX @@ @ .a++++OX @ .a", "OX .a++++OX @ @ .a++++OX .a", "OX .a++++OX @ .a++++OX .a", "OX..........a++++OX...........a++++OX..........a", "Oaaaaaaaaaaaa++++Oaaaaaaaaaaaaa++++Oaaaaaaaaaaaa", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++++++++++++++++++++++++++++++++++++", "++++++++++++++ ++++++++++++++", "OOOOOOOOOOOOO+ ..................O+OOOOOOOOOOOOO", "OXXXXXXXXXXXa+ .ooooooooooooooooXO+OXXXXXXXXXXXa", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @@@@@ .a+ .ooooooooooooooooXO+OX @@@@@ .a", "OX @ @@@ .a+ .ooooooooooooooooXO+OX @@@ @ .a", "OX @ @ .a+ .ooooooooooooooooXO+OX @ @ .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX .a+ .ooooooooooooooooXO+OX .a", "OX..........a+ .ooooooooooooooooXO+OX..........a", "Oaaaaaaaaaaaa+ .XXXXXXXXXXXXXXXXXO+Oaaaaaaaaaaaa", "++++++++++++++ OOOOOOOOOOOOOOOOOOO++++++++++++++"}; /* XPM */ static char * cdled[] = { "110 11 4 1", " c #000000000000 s led_color_back", ". c #0000FFFF0000 s led_color_high", "X c #00009E790000 s led_color_med", "o c #000061850000 s led_color_low", " ..... X X X ..... ..... X o X ..... ..... ..... ..... ..... X X X ... XoX .. Xo ", ". oXo . o . X oXo . X oXo . . . . oXo X . oXo X o XoX . . oXo . . oXo . o X . X . . o o ", ".X X. X. X. X. .X X. .X .X o. .X X. .X X. X. oX . o .. Xo ", ".X X. X. X. X. .X X. .X .X o. .X X. .X X. .X Xo . X . . o o ", ". . X . X XoX . o XoX . . oXo . . oXo X . oXo X o . . oXo . . oXo . X o . . X X ", " X o X o X o ..... ..... ..... ..... ..... X X X ..... ..... o X X ... oXo ", ". . X . . oXo X X oXo . X oXo . o XoX . . oXo . X . . oXo . o XoX . X o . X ", ".X X. X. .X X. X. o. .X X. o. .X X. o. X. oX . . X X .. Xo ", ".X X. X. .X X. X. o. .X X. o. .X X. o. .X Xo ... ooo . . o X ", ". oXo . X . . oXo X o XoX . X . o XoX . . oXo . X . . oXo . o XoX . X X . . X X . o ", " ..... o X o ..... ..... o X o ..... ..... X X X ..... ..... X X o . . o o . X "}; /* XPM */ static char * mixer[] = { "48 48 8 1", " c #631863186318", ". c none", "X c #318C318C318C", "o c #9CE69CE69CE6", "O c #000000000000 s led_color_back", "+ c #CE72CE72CE72", "@ c #0000FFFF0000 s led_color_high", "a c #000000000000", " ... ... ", " XXXXXXXXX+... XXXXXXXXXXXXXXXXXX+... XXXXXXXXX+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... XOOOOOOOOOOOOOOOOo+... XOOOOOOOo+", " XOOOOOOOo+... Xooooooooooooooooo+... XOOOOOOOo+", " XOOOOOOOo+... +++++++++++++++++++... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+......++++++++++++++...... XOOOOOOOo+", " XOOOOOOOo+......+ooooooooooooa...... XOOOOOOOo+", " XOOOOOOOo+......+o Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@ @@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@ @@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@ @@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o @@@ Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o Xa...... XOOOOOOOo+", " XOOOOOOOo+......+oXXXXXXXXXXXa...... XOOOOOOOo+", " XOOOOOOOo+......+aaaaaaaaaaaaa...... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+.......................... XOOOOOOOo+", " XOOOOOOOo+......++++++++++++++...... XOOOOOOOo+", " XOOOOOOOo+......+ooooooooooooa...... XOOOOOOOo+", " XOOOOOOOo+......+o Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o O O Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o oO Oo Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o oO Oo Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o oOo Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o OoO Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o Oo oO Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o Oo oO Xa...... XOOOOOOOo+", " XOOOOOOOo+......+o Xa...... XOOOOOOOo+", " Xoooooooo+......+oXXXXXXXXXXXa...... Xoooooooo+", " ++++++++++......+aaaaaaaaaaaaa...... ++++++++++", "................................................"}; /* XPM */ static char * mixled[] = { "58 39 10 1", " c #000063180000 s led_color_low", ". c #00009CE60000 s led_color_med", "X c #FFFF00000000", "o c #0000FFFF0000 s led_color_high", "O c #CE72CE72CE72", "+ c #9CE69CE69CE6", "@ c #000000000000 s led_color_back", "# c #631863186318", "$ c #318C318C318C", "a c #000000000000", " . X . X . X . X . X . X . X . X . X . XoooXOOOOOOOOOOOOOO", ". .X. .X. .X. .X. .X. .X. .X. .X. .X. .XoooXO++++++++++++a", " . X . X . X . X . X . X . X . X . X . XoooXO+######o###$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+###o###o##$a", " . X . X . X . X . X . X . X . X . XoooXoooXO+##oo#o####$a", ". .X. .X. .X. .X. .X. .X. .X. .X. .XoooXoooXO+#ooo####o#$a", " . X . X . X . X . X . X . X . X . XoooXoooXO+#ooo##o###$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+#ooo####o#$a", " . X . X . X . X . X . X . X . XoooXoooXoooXO+##oo#o####$a", ". .X. .X. .X. .X. .X. .X. .X. .XoooXoooXoooXO+###o###o##$a", " . X . X . X . X . X . X . X . XoooXoooXoooXO+######o###$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+$$$$$$$$$$$a", " . X . X . X . X . X . X . XoooXoooXoooXoooXOaaaaaaaaaaaaa", ". .X. .X. .X. .X. .X. .X. .XoooXoooXoooXoooXaaaaaaaaaaaaaa", " . X . X . X . X . X . X . XoooXoooXoooXoooXa$$$$$$$$$$$$O", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@Xa$#######o##+O", " . X . X . X . X . X . XoooXoooXoooXoooXoooXa$###ooo#o##+O", ". .X. .X. .X. .X. .X. .XoooXoooXoooXoooXoooXa$##o###oo##+O", " . X . X . X . X . X . XoooXoooXoooXoooXoooXa$#o#####o##+O", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@Xa$#o#####o##+O", " . X . X . X . X . XoooXoooXoooXoooXoooXoooXa$#o#####o##+O", ". .X. .X. .X. .X. .XoooXoooXoooXoooXoooXoooXa$##o###oo##+O", " . X . X . X . X . XoooXoooXoooXoooXoooXoooXa$###ooo#o##+O", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@Xa$#######o##+O", " . X . X . X . XoooXoooXoooXoooXoooXoooXoooXa$+++++++++++O", ". .X. .X. .X. .XoooXoooXoooXoooXoooXoooXoooXaOOOOOOOOOOOOO", " . X . X . X . XoooXoooXoooXoooXoooXoooXoooXOOOOOOOOOOOOOO", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO++++++++++++a", " . X . X . XoooXoooXoooXoooXoooXoooXoooXoooXO+##########$a", ". .X. .X. .XoooXoooXoooXoooXoooXoooXoooXoooXO+##@#####@#$a", " . X . X . XoooXoooXoooXoooXoooXoooXoooXoooXO+##+@###@+#$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+###+@#@+##$a", " . X . XoooXoooXoooXoooXoooXoooXoooXoooXoooXO+####+@+###$a", ". .X. .XoooXoooXoooXoooXoooXoooXoooXoooXoooXO+####@+@###$a", " . X . XoooXoooXoooXoooXoooXoooXoooXoooXoooXO+###@+#+@##$a", "@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@X@@@XO+##@+###+@#$a", " . XoooXoooXoooXoooXoooXoooXoooXoooXoooXoooXO+##########$a", ". .XoooXoooXoooXoooXoooXoooXoooXoooXoooXoooXO+$$$$$$$$$$$a", " . XoooXoooXoooXoooXoooXoooXoooXoooXoooXoooXOaaaaaaaaaaaaa"}; wmrack-1.4/XPM/led.xpm0000644000175000017500000000265707242061424013665 0ustar xtifrxtifr/* XPM */ static char * cdled[] = { "110 11 4 1", " c #000000000000 s led_color_back", ". c #0000FFFF0000 s led_color_high", "X c #00009E790000 s led_color_med", "o c #000061850000 s led_color_low", " ..... X X X ..... ..... X o X ..... ..... ..... ..... ..... X X X ... XoX .. Xo ", ". oXo . o . X oXo . X oXo . . . . oXo X . oXo X o XoX . . oXo . . oXo . o X . X . . o o ", ".X X. X. X. X. .X X. .X .X o. .X X. .X X. X. oX . o .. Xo ", ".X X. X. X. X. .X X. .X .X o. .X X. .X X. .X Xo . X . . o o ", ". . X . X XoX . o XoX . . oXo . . oXo X . oXo X o . . oXo . . oXo . X o . . X X ", " X o X o X o ..... ..... ..... ..... ..... X X X ..... ..... o X X ... oXo ", ". . X . . oXo X X oXo . X oXo . o XoX . . oXo . X . . oXo . o XoX . X o . X ", ".X X. X. .X X. X. o. .X X. o. .X X. o. X. oX . . X X .. Xo ", ".X X. X. .X X. X. o. .X X. o. .X X. o. .X Xo ... ooo . . o X ", ". oXo . X . . oXo X o XoX . X . o XoX . . oXo . X . . oXo . o XoX . X X . . X X . o ", " ..... o X o ..... ..... o X o ..... ..... X X X ..... ..... X X o . . o o . X "}; wmrack-1.4/XPM/mixer-mask.xpm0000644000175000017500000000506107242061424015166 0ustar xtifrxtifr/* XPM */ static char * mixer_mask_xpm[] = { "48 48 3 1", " c None", ". c #79E77DF779E7", "X c #000000000000", "........... .................... ...........", "........... .................... ...........", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXXXXXXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. .................... ..XXXXXXX..", "..XXXXXXX.. .................... ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "..XXXXXXX.. .............. ..XXXXXXX..", "........... .............. ...........", "........... .............. ...........", " "}; wmrack-1.4/.cvsignore0000644000175000017500000000014107265172624013723 0ustar xtifrxtifrwmrack cdctrl mixctrl Makefile config.log config.cache config.status config.h confdefs.* .depend wmrack-1.4/CHANGES0000644000175000017500000000705410722405506012716 0ustar xtifrxtifr1.3 -> 1.4 - Incorporate patch from Knut Anders Hatlen to provide support for Solaris and FreeBSD systems. Should probably still be considered somewhat experimental, but Knut says it works for him. - modify configure.in to not assume that X11 requires extra include and library paths (X11R6 does; X11R7 usually does not). - change the main polling frequency from 5000 usec (1/200th sec) to a more reasonable 50000 usec (1/20th sec), as suggested by Tim Connors. 1.2 -> 1.3 - rewrote the mixer settings file parsing logic almost completely to be more robust, and to fix the bug (reported by Knut Anders Hatlen) where WMRack would get confused about which mixer device to use when two such devices had similar names (e.g. "pcm" and "pcm2"). - changed "" to "", which should be more portable. - made some minor updates to the man page. 1.1 -> 1.2 - removed some ugly macros that were causing some compilers to complain (mostly cosmetic changes, but extensive, and critical in a couple of cases) - added some new mixer device short names to match the new names added by the kernel developers; no longer segfaults w/ linux 2.4 - removed the cdctrl and mixctrl standalone program code; the code no longer worked, and I didn't ever use them anyway. (If you *did* use/like these, let me know, and I'll see what I can do about restoring them.) - changed default to no-debug build - various minor code cleanups 1.0b5 -> 1.1 - changed the version number, even though there are few changes to the code because there is a new maintainer and a new web page: http://wmrack.sourceforge.net - removed non-standard field reference from signal handler setup - opens CDROM in more appropriate mode, for newer, pickier, libc's 1.0b4 -> 1.0b5 -------------- - use of stafs in cd_doEject regargdless of libc version 1.0b3 -> 1.0b4 -------------- - fixed the ustat problem with redhat 5 - fixed the -X11 stuff in configure.in - changed a ifdef 0 in wmrack.c - fixed a segfault in lib_open/loadMixerRC 1.0b2 -> 1.0b3 -------------- - tested repeat behaviour of play-lists -> all ok (at least for me) - fixed segfaults when no mixer file is present - my new Toshiba cdrom returnes AUDIO_INVALID on new disc added code to handle this behaviour to cdrom.c - some stop changes (by dledford@dialnet.net) - mainLoop uwait upgraded to 5000ms to reduce polling (this is not the right solution -- I want a sort of select....) - cd_getStatus will now only update after at least 5000ms passed to prevent constant cdrom polling 1.0b1 -> 1.0b2 -------------- - play sequence corrected after some tests - corrected GNUstep path autodetection and library creation - enabled GNUstep/Library path searchs for mixer and styles - fixed some play-opt leaks - added automatic play optimization (longest-sequence play) - another starttrack typo - missing led color symbols added - fixed starttrack set to curtrack when STOP is pressed - fixed missing mode & cur_track in cd_reopen - fixed track-display bug at end of disc - cd_doPlay only plays ONE track getStatus switches to next - changed CDPlayInfo start/end handling to just current 0.9 -> 1.0b1 ------------ - added a DATA notice for data-only discs - finished playlist stuff (automatic play of list, programing) - added exit function (Ctrl-Button-3 click on the mode changer) - added randomize to playlist - added playlist support - changed load/eject behaviour: button-3 click will always open the tray - added mixer library file - added mixer support (linux) - changed configuration from Imake to autoconf wmrack-1.4/COPYING0000644000175000017500000010437410722407226012762 0ustar xtifrxtifr GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . wmrack-1.4/Makefile.in0000644000175000017500000000234310722405506013764 0ustar xtifrxtifr # WMRack Makefile.in for autoconf # # Copyright (c) 1997 by Oliver Graf CC = @CC@ CFLAGS = @CFLAGS@ LIBS = @LIBS@ CPPFLAGS = @CPPFLAGS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ RM = rm -f SOURCES = xpmicon.c library.c cdrom.c mixer.c wmrack.c OBJECTS = xpmicon.o library.o cdrom.o mixer.o wmrack.o TARGETS = wmrack MANPAGES = wmrack.1 prefix = @prefix@ exec_prefix = @exec_prefix@ BINDIR = @bindir@ MANDIR = @mandir@ LIBDIR = @libdir@/WMRack MAN1DIR = $(MANDIR)/man1 all: depend standart.style $(TARGETS) standart.style: (cd XPM; make standart.style) wmrack: $(OBJECTS) $(CC) $(OBJECTS) -o $@ $(LIBS) install: $(TARGETS) install-bin install-man install-lib install-bin: mkdir -p $(BINDIR) for prog in $(TARGETS); do \ $(INSTALL) $${prog} $(BINDIR) ; \ done install-man: mkdir -p $(MAN1DIR) for man in $(MANPAGES); do \ $(INSTALL_DATA) $${man} $(MAN1DIR) ; \ done install-lib: (cd XPM; make install) clean: $(RM) *.o core binclean: clean $(RM) wmrack distclean: binclean $(RM) Makefile config.h .depend config.status config.log config.cache \ XPM/Makefile XPM/standart.style depend: standart.style .depend .depend: gcc $(CPPFLAGS) -M $(SOURCES) >> Makefile echo "Done" > .depend wmrack-1.4/README0000644000175000017500000000553410722405506012604 0ustar xtifrxtifrwmrack 1.4 The WindowMaker Sound Control Panel by Oliver Graf Currently maintained by Chris Waters See http://wmrack.sourceforge.net for the latest news and updates. DESCRIPTION: ------------ WMRack is a Dock/Wharf applet which gives you complete control over your CDROM, the Mixer and hopefully in the future to other sound related stuff (feel free to send suggestions). It's main advantage is the high configurability, which will let you specify different looks for the window at startup. CD-Functions: * Display Track and Time (remaining/to-go, track/total) * Play, Pause, Stop, Eject, Load, Track +/-, Fast Fore-/Back-ward * Display of total tracks and length when a new CD is loaded * random play, skip data tracks, play lists Mixer Functions: * startup options for initial volume * control all your mixer devices * control balance * change record sources Currently supported platforms are: Linux (stable), Solaris (experimental) and FreeBSD (experimental). INSTALLATION: ------------- First you need to configure the whole package with: ./configure (see './configure --help' for options) Now you can make a link in XPM to the style you want compiled into WMRack using 'ln -s A.style standart.style' or do nothing for the default. After this a 'make' will compile WMRack and a 'make install' will install it. Special note to Solaris users: Solaris support is new as-of release 1.4, and it should be considered somewhat experimental. You will probably need to install the OSS drivers from www.opensound.com before configuring/installing (although future versions of OpenSolaris may incorporate OSS, so you might be able to skip this step). USAGE: ------ Look into the manpage for supported options and functions. Easily swallowed by dock (use the --withdrawn option). Putting wmrack into AfterStep Wharf: *Wharf WMRack nil Swallow "wmrack" wmrack & BUGS & CONTACT: --------------- The author, Oliver Graf, is no longer supporting or maintaining WMRack, therefore, all bug reports or suggestions should be sent to the current maintainer, Chris Waters or submitted at the new web page: http://wmrack.sourceforge.net Include a description how the bug can be reproduced plus the vendor and model of your cdrom and/or soundcard. Also include a debug log (configure with --with-debug -- this is the default for beta versions) created with your bug-reproduction-recipe. Send new styles or style questions to xtifr@users.sourceforge.net Oliver may no longer support the program, but if you'd like to tell him that you appreciate his work, you can email ograf@fga.de HISTORY: -------- Basically this thing borrowed much from WorkBone, ascd and asmixer. But in the progress of work, almost any part that was stolen, has been rewritten, restructured, and overworked. ----- $Id: README,v 1.4 2007/11/25 23:54:46 xtifr Exp $ wmrack-1.4/TODO0000644000175000017500000000201310722405506012401 0ustar xtifrxtifrThis is the original TODO list written by Oliver Graf: - WindowMaker Application Menu integration (if I get the test app to run ;-) ) - integration of X-Resources for configuration purposes (that will take some time -- I will first need to buy some X-Programming-Manual ;-) ) - better configurability of the display (via XPM-extensions -- until now you can only change the look of the thing, but the positions and sizes must stay fixed). - cddb lookups + scroll text display - cd-changer (I can't test this because I don't have such a thing) - sound-file-player - spectrum analyzer Since Oliver is no longer supporting or maintaining WMRack, this list may or may not bear any resemblance to actual plans. The new maintainer (that's me, Chris Waters) will need some time to consider his options. I also have at least one item to add: - Enhance portability (not so Linux specific). Note, as of v1.4, this is at least _partially_ accomplished, with the addtion of experimental support for Solaris and FreeBSD.wmrack-1.4/WARRANTY0000644000175000017500000000235507242061335013115 0ustar xtifrxtifr NO WARRANTY BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. wmrack-1.4/cdrom.c0000644000175000017500000005537010722405506013177 0ustar xtifrxtifr/* * $Id: cdrom.c,v 1.4 2007/11/25 23:54:46 xtifr Exp $ * * cdrom utility functions for WMRack * * Copyright (c) 1997 by Oliver Graf * * some hints taken from WorkBone */ #include #include #include #include #include #include #include #include #include #include #include #include #ifdef linux # include # include #elif defined(__sun) && defined(__SVR4) /* Solaris */ # include # include # define statfs statvfs #elif defined(__FreeBSD__) # include # include # define cdrom_tocentry ioc_read_toc_single_entry # define cdte_track track # define cdte_format address_format # define cdte_ctrl entry.control # define cdte_addr entry.addr # define CDROMREADTOCENTRY CDIOREADTOCENTRY # define CDROM_LEADOUT 0xAA # define CDROM_MSF CD_MSF_FORMAT # define CDROM_DATA_TRACK 4 # define cdrom_tochdr ioc_toc_header # define cdth_trk0 starting_track # define cdth_trk1 ending_track # define CDROMREADTOCHDR CDIOREADTOCHEADER # define cdrom_msf ioc_play_msf # define cdmsf_min0 start_m # define cdmsf_sec0 start_s # define cdmsf_frame0 start_f # define cdmsf_min1 end_m # define cdmsf_sec1 end_s # define cdmsf_frame1 end_f # define cdrom_subchnl ioc_read_subchannel # define cdsc_format address_format # define cdsc_audiostatus data->header.audio_status # define cdsc_trk data->what.position.track_number # define cdsc_absaddr data->what.position.absaddr # define cdsc_reladdr data->what.position.reladdr # define CDROMSUBCHNL CDIOCREADSUBCHANNEL # define CDROM_AUDIO_INVALID CD_AS_AUDIO_INVALID # define CDROM_AUDIO_PLAY CD_AS_PLAY_IN_PROGRESS # define CDROM_AUDIO_PAUSED CD_AS_PLAY_PAUSED # define CDROM_AUDIO_COMPLETED CD_AS_PLAY_COMPLETED # define CDROM_AUDIO_NO_STATUS CD_AS_NO_STATUS # define CDROMPLAYMSF CDIOCPLAYMSF # define CDROMPAUSE CDIOCPAUSE # define CDROMRESUME CDIOCRESUME # define CDROMSTART CDIOCSTART # define CDROMSTOP CDIOCSTOP # define CDROMEJECT CDIOCEJECT #else # include #endif /* linux */ #include "cdrom.h" /* workaround -- used ints in MSF, linux uses u_char, what use other systems? */ #define msftoMSF(d,s) d.minute=s.minute; d.second=s.second; d.frame=s.frame; #define MSFtocdmsf(d,s,e) d.cdmsf_min0=s.minute; d.cdmsf_sec0=s.second; d.cdmsf_frame0=s.frame; d.cdmsf_min1=e.minute; d.cdmsf_sec1=e.second; d.cdmsf_frame1=e.frame; /* * cddb_sum(num) * * utility function to cddb_discid */ int cddb_sum(int n) { char buf[12], *p; int ret = 0; /* For backward compatibility this algorithm must not change */ sprintf(buf,"%u",n); for (p=buf; *p!='\0'; p++) ret+=(*p-'0'); return (ret); } /* * cddb_discid(cdinfo) * * calculates the id for a given cdinfo structure */ unsigned long cddb_discid(CDInfo *cdinfo) { int i, t=0, n=0; /* For backward compatibility this algorithm must not change */ for (i=0; itracks; i++) { n+=cddb_sum((cdinfo->track[i].start.minute*60) + cdinfo->track[i].start.second); t+=((cdinfo->track[i+1].start.minute*60) + cdinfo->track[i+1].start.second) - ((cdinfo->track[i].start.minute*60) + cdinfo->track[i].start.second); } cdinfo->discid=((n % 0xff) << 24 | t << 8 | cdinfo->tracks); return cdinfo->discid; } /* * cd_readTOC(CD) * * Read the table of contents from the CD. * returns 0 on success */ int cd_readTOC(CD *cd) { struct cdrom_tochdr hdr; struct cdrom_tocentry entry; int i, j; MSF tmp; if (cd->fd<0) return 1; if (ioctl(cd->fd, CDROMREADTOCHDR, &hdr)) { perror("cd_readTOC[readtochdr]"); return 1; } cd->info.start=hdr.cdth_trk0; cd->info.end=hdr.cdth_trk1; cd->info.tracks=hdr.cdth_trk1-hdr.cdth_trk0+1; #ifdef DEBUG fprintf(stderr,"cd_readTOC[DEBUG]: read header with %d tracks\n", cd->info.tracks); #endif cd->info.track=malloc(cd->info.tracks*sizeof(TrackInfo)); if (cd->info.track==NULL) { perror("cd_readTOC[malloc]"); return 1; } for (i=0; i<=cd->info.tracks; i++) { if (i==cd->info.tracks) entry.cdte_track=CDROM_LEADOUT; else entry.cdte_track=cd->info.start+i; entry.cdte_format=CDROM_MSF; if (ioctl(cd->fd, CDROMREADTOCENTRY, &entry)) { perror("cd_readTOC[tocentry read]"); free(cd->info.track); return 1; } if (entry.cdte_track!=CDROM_LEADOUT) { cd->info.track[i].num=i+1; msftoMSF(cd->info.track[i].start,entry.cdte_addr.msf); cd->info.track[i].end.minute=-1; cd->info.track[i].end.second=-1; cd->info.track[i].end.frame=-1; cd->info.track[i].data=entry.cdte_ctrl&CDROM_DATA_TRACK?1:0; if (i>0) { cd->info.track[i-1].end=cd->info.track[i].start; cd->info.track[i-1].length=subMSF(cd->info.track[i-1].end, cd->info.track[i-1].start); } } else { msftoMSF(cd->info.track[i-1].end,entry.cdte_addr.msf); cd->info.track[i-1].length=subMSF(cd->info.track[i-1].end, cd->info.track[i-1].start); } } cddb_discid(&cd->info); return 0; } /* * cd_playMSF(cd,start,end) * * sends the actual play to the cdrom. */ int cd_playMSF(CD *cd, MSF start, MSF end) { struct cdrom_msf msf; if (cd==NULL || cd->fd<0) return 1; MSFtocdmsf(msf,start,end); if (cd->info.current.mode==CDM_STOP) if (ioctl(cd->fd, CDROMSTART)) { perror("cd_playMSF[CDROMSTART]"); return 1; } if (ioctl(cd->fd, CDROMPLAYMSF, &msf)) { printf("cd_playMSF[playmsf]\n"); printf(" msf = %02d:%02d:%02d %02d:%02d:%02d\n", msf.cdmsf_min0, msf.cdmsf_sec0, msf.cdmsf_frame0, msf.cdmsf_min1, msf.cdmsf_sec1, msf.cdmsf_frame1); perror("cd_playMSF[CDROMPLAYMSF]"); return 1; } return 0; } /* * cd_freeinfo(cd) * * frees a allocate CDInfo */ void cd_freeinfo(CD *cd) { if (cd->info.track) free(cd->info.track); if (cd->info.list.track) free(cd->info.list.track); memset(&cd->info,0x0,sizeof(CDInfo)); memset(&cd->info.current,0xff,sizeof(CDPosition)); /* paranoia */ cd->info.track=NULL; cd->info.list.track=NULL; } /* * cd_close(cd) * * closes the cd device and frees all data structures inside */ void cd_close(CD *cd) { if (cd==NULL) return; cd_freeinfo(cd); free(cd->device); close(cd->fd); free(cd); } /* * cd_open(device) * * sets the device for further cd-access * set force to TRUE for immidiate change */ CD *cd_open(char *device, int noopen) { struct stat st; CD *cd; if (stat(device,&st)) { perror("cd_open[stat]"); return NULL; } cd=(CD *)malloc(sizeof(CD)); if (cd==NULL) { perror("cd_open[malloc]"); return NULL; } cd->device=strdup(device); cd->fd=-1; cd->status=-1; memset(&cd->info,0x0,sizeof(CDInfo)); memset(&cd->info.current,0xff,sizeof(CDPosition)); if (!noopen) cd_reopen(cd); return cd; } /* * cd_suspend(cd) * * closes the cd device, but leaves all structures intact */ int cd_suspend(CD *cd) { if (cd==NULL) return -1; close(cd->fd); cd->fd=-1; cd->status=-1; cd_freeinfo(cd); return 0; } /* * cd_reopen(cd) * * reopens a suspended cd device, and reads the new TOC if cd is changed */ int cd_reopen(CD *cd) { int start, end, track; if (cd==NULL) return 1; if ((cd->fd=open(cd->device,O_RDONLY|O_NONBLOCK))<0) { perror("cd_reopen[open]"); return 1; } cd_freeinfo(cd); if (!cd_readTOC(cd)) { cd_resetpl(cd); cd->status=cd_getStatus(cd,0,1); switch (cd->info.current.mode) { case CDM_PLAY: cd->info.play.last_action=CDA_PLAY; break; case CDM_PAUSE: cd->info.play.last_action=CDA_PAUSE; break; case CDM_STOP: cd->info.play.last_action=CDA_STOP; break; case CDM_COMP: case CDM_EJECT: cd->info.play.last_action=CDA_NONE; break; } start=cd->info.play.cur_track=cd_findtrack(cd,cd->info.current.track); /* do play list optimization: * find the longest possible track sequence without jumps */ for (track=cd->info.list.track[start].num, end=start+1; endinfo.list.tracks && track==cd->info.list.track[end].num-1; track=cd->info.list.track[end].num, end++); end--; cd->info.play.cur_end=end; cd->info.play.repeat_mode=CDR_NONE; cd->info.play.play_type=CDP_NORMAL; } else { cd_freeinfo(cd); cd->status=-1; close(cd->fd); cd->fd=-1; } return 0; } static struct timeval last_upd={0,0}; /* * cd_getStatus(cd,reopen,force) * * Return values: * -1 error * 0 No CD in drive. * 1 CD in drive. * 2 CD has just been inserted (TOC has been read) * * Updates the CDPosition struct of the cd. * If reopen is not 0, the device is automatically reopened if needed. * This will query the cdrom only one time within 1/2 second to reduce * overhead. Force will overide this behaviour. */ int cd_getStatus(CD *cd, int reopen, int force) { struct cdrom_subchnl sc; int ret=1, newcd=0, im_stop=0; CDPosition *cur; struct timeval now; #ifdef __FreeBSD__ struct cd_sub_channel_info data; sc.data = &data; sc.data_len = sizeof(data); sc.data_format = CD_CURRENT_POSITION; #endif if (cd==NULL) return -1; if (cd->fd<0) { if (!reopen) { cd->status=0; return 0; } if (cd_reopen(cd)) return -1; newcd=1; } gettimeofday(&now,NULL); if (force || ((now.tv_sec-last_upd.tv_sec)*1000000L+(now.tv_usec-last_upd.tv_usec))>500000L) { cur=&cd->info.current; sc.cdsc_format=CDROM_MSF; if (ioctl(cd->fd, CDROMSUBCHNL, &sc)) { memset(cur,0xff,sizeof(CDPosition)); cur->mode=CDM_EJECT; cd->status=0; return 0; } /* only set update time if ioctl was successful */ last_upd=now; if (newcd) { memset(cur,0xff,sizeof(CDPosition)); cur->mode=CDM_STOP; ret=2; } switch (sc.cdsc_audiostatus) { case CDROM_AUDIO_PLAY: cur->mode=CDM_PLAY; setpos: cur->track=cd_findtrack(cd,sc.cdsc_trk); msftoMSF(cur->relmsf,sc.cdsc_reladdr.msf); msftoMSF(cur->absmsf,sc.cdsc_absaddr.msf); break; case CDROM_AUDIO_PAUSED: if (cd->info.play.last_action!=CDA_STOP) { cur->mode=CDM_PAUSE; goto setpos; } memset(cur,0xff,sizeof(CDPosition)); cur->mode=CDM_STOP; break; case CDROM_AUDIO_COMPLETED: cur->mode=CDM_COMP; break; case CDROM_AUDIO_NO_STATUS: case CDROM_AUDIO_INVALID: /* my TOSHIBA CD-ROM XM-5602B wants this */ memset(cur,0xff,sizeof(CDPosition)); cur->mode=CDM_STOP; break; } cd->status=ret; /* if (ret>0 && cur->track>cd->info.tracks && cur->mode!=CDM_EJECT) { cd_doStop(cd); im_stop=1; } */ switch (cd->info.play.repeat_mode) { case CDR_NONE: if ((cd->info.play.last_action==CDA_PLAY && cur->mode!=CDM_PLAY) /* this means: the user wants the cdrom to play, * but the cdrom does not play */ || cur->mode==CDM_COMP || im_stop) { #ifdef DEBUG fprintf(stderr,"cd_getStatus[DEBUG]: switching to next track\n"); #endif cd->info.play.cur_track=cd->info.play.cur_end+1; if (cd->info.play.cur_trackinfo.list.tracks) cd_doPlay(cd,cd->info.play.cur_track); else cd_doStop(cd); } break; case CDR_ALL: if ((cd->info.play.last_action==CDA_PLAY && cur->mode!=CDM_PLAY) || cur->mode==CDM_COMP || im_stop) { cd->info.play.cur_track++; if (cd->info.play.cur_track>=cd->info.list.tracks) { #ifdef DEBUG fprintf(stderr,"cd_getStatus[DEBUG]: repeating list\n"); #endif if (cd->info.play.play_type==CDP_RANDOM) cd_randomize(cd); cd_doPlay(cd,0); } else { #ifdef DEBUG fprintf(stderr,"cd_getStatus[DEBUG]: switching to next track\n"); #endif cd_doPlay(cd,cd->info.play.cur_track); } } break; case CDR_ONE: if ((cd->info.play.last_action==CDA_PLAY && cur->mode!=CDM_PLAY) || cur->mode==CDM_COMP || im_stop) { #ifdef DEBUG fprintf(stderr,"cd_getStatus[DEBUG]: repeating track\n"); #endif cd_doPlay(cd,cd->info.play.cur_track); } break; } } return ret; } /* * cd_doPlay(cd,start); * * start playing the cd. cd must be opened. play starts at track start goes * until end of track end. * 0 is the first track of the play list. */ int cd_doPlay(CD *cd, int start) { int end, track; if (cd==NULL || cd->fd<0) return 1; if (start<0) start=0; if (start>=cd->info.list.tracks) start=cd->info.list.tracks-1; /* do play list optimization: * find the longest possible track sequence without jumps */ for (track=cd->info.list.track[start].num, end=start+1; endinfo.list.tracks && track==cd->info.list.track[end].num-1; track=cd->info.list.track[end].num, end++); end--; #ifdef DEBUG fprintf(stderr,"cd_doPlay[DEBUG]: play from [%d]%02d:%02d:%02d to end of [%d]%02d:%02d:%02d\n", start, cd->info.list.track[start].start.minute, cd->info.list.track[start].start.second, cd->info.list.track[start].start.frame, end, cd->info.list.track[end].end.minute, cd->info.list.track[end].end.second, cd->info.list.track[end].end.frame); #endif cd->info.play.last_action=CDA_PLAY; cd->info.play.cur_track=start; cd->info.play.cur_end=end; return cd_playMSF(cd, cd->info.list.track[start].start, cd->info.list.track[end].end); } /* * cd_doPause(cd) * * Pause the CD, if it's in play mode. * Resume the CD, If it's already paused. */ int cd_doPause(CD *cd) { if (cd==NULL || cd->fd<0) return 1; switch (cd->info.current.mode) { case CDM_PLAY: cd->info.current.mode=CDM_PAUSE; #ifdef DEBUG fprintf(stderr,"cd_doPause[DEBUG]: pausing cdrom\n"); #endif ioctl(cd->fd, CDROMPAUSE); cd->info.play.last_action=CDA_PAUSE; break; case CDM_PAUSE: cd->info.current.mode=CDM_PLAY; #ifdef DEBUG fprintf(stderr,"cd_doPause[DEBUG]: resuming cdrom\n"); #endif ioctl(cd->fd, CDROMRESUME); cd->info.play.last_action=CDA_PLAY; break; #ifdef DEBUG default: fprintf(stderr,"cd_doPause[DEBUG]: not playing or pausing\n"); #endif } return 0; } /* * cd_doStop(cd) * * Stop the CD if it's not already stopped. */ int cd_doStop(CD *cd) { if (cd==NULL || cd->fd<0) return 1; if (cd->info.current.mode!=CDM_STOP) { /* olis cdrom needs this */ if (cd->info.current.mode==CDM_PLAY) cd_doPause(cd); #ifdef DEBUG fprintf(stderr,"cd_doStop[DEBUG]: stopping cdrom\n"); #endif if (ioctl(cd->fd, CDROMSTOP)) { perror("cd_doStop[CDROMSTOP]"); return 1; } cd->info.play.last_action=CDA_STOP; if (cd->info.current.track>=cd->info.list.tracks) cd->info.play.cur_track=0; else cd->info.play.cur_track=cd->info.current.track; memset(&cd->info.current,0xff,sizeof(CDPosition)); cd->info.current.mode=CDM_STOP; } return 0; } /* * cd_doEject(CD *cd) * * Eject the current CD, if there is one. * Returns 0 on success, 1 if the CD couldn't be ejected, or 2 if the * CD contains a mounted filesystem. */ int cd_doEject(CD *cd) { struct statfs ust; if (cd==NULL) return 0; if (cd->fd<0) /* reopen a closed device */ { if ((cd->fd=open(cd->device,0))<0) { perror("cd_doEject[(re)open]"); return 1; } } if (statfs(cd->device, &ust)) { perror("cd_doEject[is_mounted]"); cd_suspend(cd); return 2; } #ifdef DEBUG fprintf(stderr,"cd_doEject[DEBUG]: stopping cdrom\n"); #endif ioctl(cd->fd, CDROMSTOP); cd->info.play.last_action=CDA_STOP; #ifdef DEBUG fprintf(stderr,"cd_doEject[DEBUG]: ejecting cdrom\n"); #endif if (ioctl(cd->fd, CDROMEJECT)) { perror("cd_doEject[CDROMEJECT]"); cd_suspend(cd); return 1; } cd_suspend(cd); return 0; } /* * cd_doSkip(cd,seconds) * * Skip some seconds from current position */ int cd_doSkip(CD *cd, int secs) { MSF start, end; if (cd==NULL || cd->fd<0) return 1; end=cd->info.list.track[cd->info.play.cur_end].end; start=cd->info.current.absmsf; start.second+=secs; start=normMSF(start); #ifdef DEBUG fprintf(stderr,"cd_doSkip[DEBUG]: skipping %d seconds\n",secs); #endif if (cmpMSF(start,cd->info.list.track[0].start)<0) { start=cd->info.list.track[0].start; #ifdef DEBUG fprintf(stderr,"cd_doSkip[DEBUG]: can't skip before first track\n"); #endif } if (cmpMSF(start,end)>0) { #ifdef DEBUG fprintf(stderr,"cd_doSkip[DEBUG]: at end of track ... waiting\n"); return 0; #endif } #ifdef DEBUG fprintf(stderr,"cd_doSkip[DEBUG]: play from %02d:%02d:%02d to %02d:%02d:%02d\n", start.minute, start.second, start.frame, end.minute, end.second, end.frame); #endif return cd_playMSF(cd,start,end); } /* * cmpMSF(a,b) * * compares two MSF structs */ int cmpMSF(MSF a, MSF b) { int fa=msfFrames(a), fb=msfFrames(b); if (fafb) return 1; return 0; } /* * subMSF(a,b) * * subtract b from a */ MSF subMSF(MSF a, MSF b) { MSF c; c.minute=a.minute-b.minute; c.second=a.second-b.second; c.frame =a.frame -b.frame; return normMSF(c); } /* * addMSF(a,b) * * add a to b */ MSF addMSF(MSF a, MSF b) { MSF c; c.minute=a.minute+b.minute; c.second=a.second+b.second; c.frame =a.frame +b.frame; return normMSF(c); } /* * normMSF(msf) * * normalize msf to limits */ MSF normMSF(MSF msf) { while (msf.frame<0) {msf.frame+=FRAMES; msf.second--;} while (msf.second<0) {msf.second+=SECONDS; msf.minute--;} if (msf.minute<0) msf.minute=0; while (msf.frame>FRAMES) {msf.frame-=FRAMES; msf.second++;} while (msf.second>SECONDS) {msf.second-=SECONDS; msf.minute++;} return msf; } /* * cd_resetpl(cd,all) * * reset the play list to all non-data tracks (or all tracks if all is true) */ int cd_resetpl(CD *cd) { int i; if (cd==NULL) return 1; if (cd->info.list.track) free(cd->info.list.track); cd->info.list.tracks=0; MSFzero(cd->info.list.length); if (cd->info.tracks==0) return 0; cd->info.list.track=(TrackInfo *)malloc(cd->info.tracks*sizeof(TrackInfo)); if (cd->info.list.track==NULL) { perror("cd_resetpl[malloc]"); return 1; } cd->info.list.allocated=cd->info.tracks; for (i=0; iinfo.tracks; i++) if (!cd->info.track[i].data) { cd->info.list.track[cd->info.list.tracks++]=cd->info.track[i]; cd->info.list.length=addMSF(cd->info.list.length, cd->info.list.track[cd->info.list.tracks-1].length); } cd->info.play.play_type=CDP_NORMAL; #ifdef DEBUG fprintf(stderr,"cd_resetpl[DEBUG]: cd playlist reseted\n"); #endif return 0; } /* * cd_findtrack(cd,number) * * find the track with number in the play list and return it's index * returns -1 if not found */ int cd_findtrack(CD *cd, int num) { int i; if (cd==NULL || cd->info.track==NULL) return -1; for (i=0; iinfo.list.tracks; i++) if (cd->info.list.track[i].num==num) return i; return -1; } /* * cd_randomize(cd) * * create a random, non-repeating play list from all non-data tracks */ int cd_randomize(CD *cd) { int i, *wech, r, j; if (cd==NULL) return 1; if (cd->info.list.track) free(cd->info.list.track); cd->info.list.tracks=0; MSFzero(cd->info.list.length); if (cd->info.tracks==0) return 0; cd->info.list.track=(TrackInfo *)malloc(cd->info.tracks*sizeof(TrackInfo)); if (cd->info.list.track==NULL) { perror("cd_randomize[malloc]"); return 1; } wech=(int *)malloc(sizeof(int)*cd->info.tracks); if (wech==NULL) { perror("cd_randomize[tmp-malloc]"); free(wech); return 1; } r=cd->info.tracks; for (i=0; iinfo.tracks; i++) { if (!cd->info.track[i].data) wech[i]=0; else { wech[i]=1; r--; } } while (r) { i=random()%r; for (j=0; jinfo.tracks; j++) { if (i) i--; else if (!i && !wech[j]) { cd->info.list.track[cd->info.list.tracks++]=cd->info.track[j]; cd->info.list.length=addMSF(cd->info.list.length, cd->info.list.track[cd->info.list.tracks-1].length); wech[j]++; r--; break; } } } cd->info.play.play_type=CDP_RANDOM; #ifdef DEBUG fprintf(stderr,"cd_randomize[DEBUG]: cd playlist randomized\n"); #endif return 0; } /* * cd_setpl(cd,list) * * set the playlist of cd to list */ int cd_setpl(CD *cd, CDPlayList *list) { if (cd==NULL || list==NULL) return 1; if (cd->info.list.track!=NULL) free(cd->info.list.track); cd->info.list.track=(TrackInfo *)malloc(list->allocated*sizeof(TrackInfo)); if (cd->info.list.track==NULL) { perror("cd_setpl[malloc]"); return 2; } cd->info.list.length=list->length; cd->info.list.allocated=list->allocated; cd->info.list.tracks=list->tracks; memcpy(cd->info.list.track,list->track,list->allocated*sizeof(TrackInfo)); #ifdef DEBUG fprintf(stderr,"cd_setpl[DEBUG]: cd playlist set to playlist 0x%08x\n",list); #endif return 0; } /* * cdpl_new() * * create a new empty playlist structure */ CDPlayList *cdpl_new() { CDPlayList *new; new=(CDPlayList *)malloc(sizeof(CDPlayList)); if (new==NULL) { perror("cdpl_new[malloc]"); return NULL; } memset(new,0,sizeof(CDPlayList)); #ifdef DEBUG fprintf(stderr,"cdpl_new[DEBUG]: new playlist created (0x%08x)\n",new); #endif return new; } /* * cdpl_free(list) * * free the memory occupied by a playlist */ int cdpl_free(CDPlayList *list) { if (list) { #ifdef DEBUG fprintf(stderr,"cdpl_free[DEBUG]: free playlist 0x%08x\n",list); #endif if (list->track) free(list->track); free(list); } return 0; } /* * cdpl_add(cd,track) * * add track to list */ int cdpl_add(CDPlayList *list, CD *cd, int track) { if (list==NULL || track>=cd->info.tracks || track<0) return 1; if (list->track==NULL) { list->track=(TrackInfo *)malloc(10*sizeof(TrackInfo)); list->allocated=10; list->tracks=0; } else if (list->allocated==list->tracks) { TrackInfo *new; list->allocated+=10; new=realloc(list->track,list->allocated*sizeof(TrackInfo)); if (new==NULL) { perror("cdpl_add[realloc]"); return 2; } list->track=new; } list->track[list->tracks++]=cd->info.track[track]; list->length=addMSF(list->length,cd->info.track[track].length); #ifdef DEBUG fprintf(stderr,"cdpl_add[DEBUG]: track %d added to playlist 0x%08x (size %d)\n", cd->info.track[track].num,list,list->tracks); #endif return 0; } /* * cdpl_reset(list) * * set the playlist to zero tracks */ int cdpl_reset(CDPlayList *list) { if (list==NULL) return 1; if (list->track) free(list->track); memset(list,0,sizeof(CDPlayList)); #ifdef DEBUG fprintf(stderr,"cdpl_reset[DEBUG]: playlist 0x%08x reseted\n",list); #endif return 0; } wmrack-1.4/cdrom.h0000644000175000017500000000673607736654303013222 0ustar xtifrxtifr/* * $Id: cdrom.h,v 1.2 2003/10/01 22:44:19 xtifr Exp $ * * Copyright (c) 1997 by Oliver Graf */ #ifndef WMRACK_CDROM_H_ #define WMRACK_CDROM_H_ /* cd status modes */ #define CDM_CLOSED -1 #define CDM_COMP 0 #define CDM_PLAY 1 #define CDM_PAUSE 2 #define CDM_STOP 3 #define CDM_EJECT CDM_CLOSED /* cd actions */ #define CDA_NONE 0 #define CDA_STOP 1 #define CDA_PLAY 2 #define CDA_PAUSE 3 /* repeatmode */ #define CDR_NONE 0 #define CDR_ONE 1 #define CDR_ALL 2 /* playtype */ #define CDP_NORMAL 0 #define CDP_RANDOM 1 typedef struct { int minute; int second; int frame; } MSF; #define FRAMES 75 #define SECONDS 60 #define fSecs(f) (int)(f/FRAMES) #define fMins(f) (int)(f/FRAMES/SECONDS) #define msfFrames(msf) (((msf.minute*SECONDS)+msf.second)*FRAMES+msf.frame) #define msfSecs(msf) (((msf.minute*SECONDS)+msf.second) #define MSFnone(msf) msf.minute=msf.second=msf.frame=-1 #define MSFzero(msf) msf.minute=msf.second=msf.frame=0 typedef struct { int num; MSF start; /* real start */ MSF end; /* start of the next track == end */ MSF length; /* length of the track in MSF */ int data; /* datatrack? */ } TrackInfo; typedef struct { int mode; int track; MSF relmsf; MSF absmsf; } CDPosition; typedef struct { /* stores information about the last play action */ int last_action; /* last action, needed for auto-play-next-in-list */ int cur_track; /* this is the automatical up-counted track within the list */ int cur_end; /* this is the calculated end of an uninterupted sequence */ int repeat_mode; /* repeat some or all or none */ int play_type; /* normal or random */ } CDPlayInfo; typedef struct { /* stores a array of tracks to play */ MSF length; /* length of the play list */ int allocated; /* tracks allacated in track entry */ int tracks; /* number of tracks in the play list */ TrackInfo *track; /* the tracks */ } CDPlayList; typedef struct { CDPosition current; CDPlayInfo play; CDPlayList list; /* is initialized with all non-data tracks */ unsigned long discid; int start; /* first track of the cd */ int end; /* last track of the cd */ int tracks; /* number of tracks (end-start)+1 */ TrackInfo *track; } CDInfo; typedef struct { int fd; char *device; int status; /* this keeps the return value of cd_getStatus() */ CDInfo info; /* only one cd per device, anything else is stupid */ } CD; CD *cd_open(char *device, int noopen); int cd_reopen(CD *cd); int cd_suspend(CD *cd); void cd_close(CD *cd); void cd_freeinfo(CD *cd); int cd_getStatus(CD *cd, int reopen, int force); /* * all cd_do* commands assume that prior to their call a cd_getStatus * is done to update the CDPosition struct of the cd */ int cd_playMSF(CD *cd, MSF start, MSF end); int cd_doPlay(CD *cd, int start); int cd_doSkip(CD *cd, int secs); int cd_doPause(CD *cd); int cd_doStop(CD *cd); int cd_doEject(CD *cd); int cmpMSF(MSF a, MSF b); MSF subMSF(MSF a, MSF b); MSF addMSF(MSF a, MSF b); MSF normMSF(MSF msf); /* * play list functions * * first the CD internal stuff */ int cd_resetpl(CD *cd); int cd_findtrack(CD *cd, int num); int cd_randomize(CD *cd); int cd_setpl(CD *cd, CDPlayList *list); /* * now extra play lists */ CDPlayList *cdpl_new(); int cdpl_free(CDPlayList *list); int cdpl_add(CDPlayList *list, CD *cd, int track); int cdpl_reset(CDPlayList *list); #endif /* WMRACK_CDROM_H_ */ wmrack-1.4/config.h.in0000644000175000017500000000033607242061346013745 0ustar xtifrxtifr/* config.h.in. Generated automatically from configure.in by autoheader. */ /* Define if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define if you want GNUstep compilant paths. */ #undef HAVE_GNUSTEP wmrack-1.4/configure.in0000644000175000017500000000500510722405506014226 0ustar xtifrxtifrdnl dnl WMRack autoconf stuff dnl dnl Copyright (c) 1997 by Oliver Graf dnl AC_INIT(wmrack.c) AC_CONFIG_HEADER(config.h) dnl package switches dnl dnl AC_ARG_WITH(cdplayer,[ --with-cdplayer Include cdplayer support.]) dnl AC_ARG_WITH(mixer, [ --with-mixer Include mixer support.]) AC_ARG_WITH(debug, [ --with-debug Compile with extra debug messages.]) AC_ARG_WITH(gnustep, \ [ --without-gnustep Don't use GNUstep style library paths.]) dnl check for standart compile && install stuff dnl AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AC_SUBST(INSTALL) dnl check for needed headers dnl AC_HEADER_STDC AC_CHECK_HEADER(unistd.h) dnl Check for Linux CDROM support dnl dnl if test "x${enable_cdplayer}" = "xno"; then dnl AC_MSG_WARN([cdplayer feature disabled]) dnl else dnl AC_MSG_CHECKING([for cdplayer support]) dnl AC_EGREP_HEADER([struct cdrom_msf],linux/cdrom.h,[echo yes dnl AC_DEFINE(WITH_CDPLAYER,linux)],[echo no]) dnl fi dnl Check for Linux MIXER support dnl dnl if test "x${enable_mixer}" = "xno"; then dnl AC_MSG_WARN([mixer feature disabled]) dnl else dnl AC_MSG_CHECKING([for mixer support]) dnl AC_EGREP_HEADER([typedef struct mixer_info],linux/soundcard.h,[echo yes dnl AC_DEFINE(WITH_MIXER,linux)],[echo no]) dnl fi dnl check for X11 dnl AC_PATH_X if test "x$no_x" = "xyes"; then AC_MSG_ERROR([WMRack needs X Windows!!!]) else CFLAGS="$CFLAGS ${x_includes:+-I$x_includes}" LIBS="$LIBS ${x_libraries:+-L$x_libraries} -lX11" CPPFLAGS="$CPPFLAGS ${x_includes:+-I$x_includes}" fi dnl check for Xpm dnl AC_CHECK_LIB(Xpm,XpmCreatePixmapFromBuffer,\ [LIBS="$LIBS -lXpm"],\ AC_MSG_ERROR([WMRack needs XPM support!!!]),\ -lX11) dnl check for Shape extensions dnl AC_CHECK_HEADER(X11/extensions/shape.h,[],\ [AC_MSG_ERROR([WMRack needs X11 Shape extensions!!!])]) AC_CHECK_LIB(Xext,XShapeCombineMask,\ [LIBS="$LIBS -lXext"],\ AC_MSG_ERROR([WMRack needs the X11 extension library!!!]),\ -lX11) dnl check for extra package options dnl echo dnl DEBUG if test "x${with_debug}" = "xyes"; then echo "adding extra DEBUG output" CFLAGS="-ggdb -DDEBUG $CFLAGS" fi dnl GNUstep paths if test "x${with_gnustep}" = "xno"; then echo "GNUstep path standarts disabled" else echo -n "Trying to detect GNUstep paths..." if test -d "$prefix/GNUstep" -o -d "$ac_default_prefix/GNUstep"; then libdir=[\${prefix}/GNUstep/Library] echo " $libdir" AC_DEFINE(HAVE_GNUSTEP) else echo " NOT FOUND -- DISABLED" fi fi echo dnl All done dnl create output dnl AC_OUTPUT(Makefile XPM/Makefile) wmrack-1.4/install-sh0000755000175000017500000001272107242061350013722 0ustar xtifrxtifr#! /bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 wmrack-1.4/library.c0000644000175000017500000000537507242061353013540 0ustar xtifrxtifr/* * $Id: library.c,v 1.1.1.1 2001/02/12 22:25:47 xtifr Exp $ * * part of wmrack * * handles the library path searchs * * Copyright (c) 1997 by Oliver Graf */ #include #include #include #include #include #include #include #include #include "config.h" #include "library.h" static char *lib_mode[]={"", "r", "w", "a"}; #ifdef HAVE_GNUSTEP static char *lib_global_path[]={"/usr/local/GNUstep/Library/WMRack/", "/usr/GNUstep/Library/WMRack/", NULL}; static char *lib_personal_path[]={"/GNUstep/Library/WMRack/", NULL}; #else static char *lib_global_path[]={"/usr/X11R6/lib/X11/WMRack/", NULL}; static char *lib_personal_path[]={"/.wmrack/", NULL}; #endif /* HAVE_GNUSTEP */ static char lib_stat_path[4096]=""; char *lib_findfile(char *name, int here) { char path[4096]=""; int i; struct stat st; if (here) { strcpy(path,name); if (stat(path,&st)!=0) *path=0; } if (*path==0) for (i=0; lib_personal_path[i]; i++) { strcpy(path,getenv("HOME")); strcat(path,lib_personal_path[i]); if (here) { strcat(path,name); if (stat(path,&st)==0) break; } else if (stat(path,&st)==0) { strcat(path,name); break; } *path=0; } if (*path==0) { for (i=0; lib_global_path[i]; i++) { strcpy(path,lib_global_path[i]); strcat(path,name); if (stat(path,&st)==0) break; *path=0; } if (*path==0) { strcpy(path,getenv("HOME")); strcat(path,lib_personal_path[0]); if (mkdir(path,0755)) return NULL; strcat(path,name); } } strcpy(lib_stat_path,path); return lib_stat_path; } LIBRARY *lib_open(char *name, int mode) { char *p=NULL; LIBRARY *lib=NULL; FILE *f=NULL; p=lib_findfile(name,0); if (p==NULL) return NULL; f=fopen(p,lib_mode[mode]); if (f!=NULL) { lib=(LIBRARY *)malloc(sizeof(LIBRARY)); lib->name=strdup(p); lib->f=fopen(lib->name,lib_mode[mode]); lib->mode=mode; } return lib; } int lib_close(LIBRARY *lib) { fclose(lib->f); lib->f=NULL; lib->mode=LIB_CLOSED; return 0; } int lib_free(LIBRARY *lib) { lib_close(lib); free(lib->name); free(lib); return 0; } int lib_reopen(LIBRARY *lib, int mode) { lib_close(lib); lib->f=fopen(lib->name,lib_mode[mode]); if (lib->f==NULL) return -1; return 0; } char *lib_gets(LIBRARY *lib, char *line, int len) { if (lib->mode==LIB_READ) return fgets(line,len,lib->f); return NULL; } int lib_printf(LIBRARY *lib, char *format, ...) { va_list args; int s; if (lib->mode==LIB_READ) return 0; va_start(args,format); s=vfprintf(lib->f,format,args); va_end(args); return s; } wmrack-1.4/library.h0000644000175000017500000000126607736654303013553 0ustar xtifrxtifr/* * $Id: library.h,v 1.2 2003/10/01 22:44:19 xtifr Exp $ * * part of wmrack * * handles the library path searchs * * Copyright (c) 1997 by Oliver Graf */ #ifndef WMRACK_LIBRARY_H_ #define WMRACK_LIBRARY_H_ #define LIB_CLOSED 0 #define LIB_READ 1 #define LIB_WRITE 2 #define LIB_APPEND 3 typedef struct { FILE *f; char *name; int mode; } LIBRARY; char *lib_findfile(char *name, int here); LIBRARY *lib_open(char *name, int mode); int lib_close(LIBRARY *lib); int lib_free(LIBRARY *lib); int lib_reopen(LIBRARY *lib, int mode); char *lib_gets(LIBRARY *lib, char *line, int len); int lib_printf(LIBRARY *lib, char *format, ...); #endif /* WMRACK_LIBRARY_H_ */ wmrack-1.4/mixer.c0000644000175000017500000002445410422347001013206 0ustar xtifrxtifr/* * $Id: mixer.c,v 1.3 2006/04/22 06:32:33 xtifr Exp $ * * mixer utility functions for WMRack * * Copyright (c) 1997 by Oliver Graf * copyright 2006 by Chris Waters */ #include #include #include #include #include #include #include #include #include #include #include "mixer.h" char *mixer_labels[]=SOUND_DEVICE_LABELS; char *mixer_names[]=SOUND_DEVICE_NAMES; char *mixer_shortnames[]={"VO", "BA", "TR", "SY", "PC", "SP", "LI", "MI", "CD", "MX", "P2", "RE", "IG", "OG", "L1", "L2", "L3", "D1", "D2", "D3", "PI", "PO", "VI", "RA", "MO"}; int mixer_devices=SOUND_MIXER_NRDEVICES; /* * mixer_getinfo(MIXER) * * reads the supported devices and their capabilities * * returns 0 on success */ int mixer_getinfo(MIXER *mix) { if (!mix || mix->fd==0) return -1; if (ioctl(mix->fd,SOUND_MIXER_INFO,&mix->id)) { fprintf(stderr,"mixer_getinfo[info]: %s\n",strerror(errno)); memset(&mix->id,0,48); } #ifdef DEBUG else fprintf(stderr,"mixer_getinfo[info] - successful\n"); #endif if (ioctl(mix->fd,SOUND_MIXER_READ_DEVMASK,&mix->mask)) { fprintf(stderr,"mixer_getinfo[devmask]: %s\n",strerror(errno)); mix->mask=0; } #ifdef DEBUG else fprintf(stderr,"mixer_getinfo[devmask] - successful\n"); #endif if (ioctl(mix->fd,SOUND_MIXER_READ_STEREODEVS,&mix->stereo)) { fprintf(stderr,"mixer_getinfo[stereodevs]: %s\n",strerror(errno)); mix->stereo=0; } #ifdef DEBUG else fprintf(stderr,"mixer_getinfo[stereodevs] - successful\n"); #endif if (ioctl(mix->fd,SOUND_MIXER_READ_CAPS,&mix->caps)) { fprintf(stderr,"mixer_getinfo[caps]: %s\n",strerror(errno)); mix->caps=0; } #ifdef DEBUG else fprintf(stderr,"mixer_getinfo[caps] - successful\n"); #endif if (ioctl(mix->fd,SOUND_MIXER_READ_RECSRC,&mix->recsrc)) { fprintf(stderr,"mixer_getinfo[recsrc]: %s\n",strerror(errno)); mix->recsrc=0; } #ifdef DEBUG else fprintf(stderr,"mixer_getinfo[recsrc] - successful\n"); #endif if (ioctl(mix->fd,SOUND_MIXER_READ_RECMASK,&mix->recmask)) { fprintf(stderr,"mixer_getinfo[recmask]: %s\n",strerror(errno)); mix->recmask=0; } #ifdef DEBUG else fprintf(stderr,"mixer_getinfo[recmask] - successful\n"); #endif return 0; } /* * mixer_readvol(mixer,dev) * * reads the current volume setting of the specified device * * returns 0 if volume is equal to last read, 1 if volume has changed * and a negative value on failure */ int mixer_readvol(MIXER *mix, int dev) { if (!mix || mix->fd==0) return -1; mix->old_vol[dev]=mix->cur_vol[dev]; if (mixer_isdevice(mix,dev)) { if (ioctl(mix->fd,MIXER_READ(dev),&mix->cur_vol[dev])) { fprintf(stderr,"mixer_readvol[%s]: %s\n",mixer_names[dev],strerror(errno)); mix->cur_vol[dev]=-1; } else if (mix->old_vol[dev]!=mix->cur_vol[dev]) return 1; } else return -1; return 0; } /* * mixer_readvols(MIXER) * * reads the current volume settings of all supported devices * * returns 0 if volume is equal to last read, 1 if volume has changed * and a negative value on failure */ int mixer_readvols(MIXER *mix) { int i, change=0; if (!mix || mix->fd==0) return -1; memcpy(mix->old_vol,mix->cur_vol,sizeof(int)*32); for (i=0; ifd,MIXER_READ(i),&mix->cur_vol[i])) { fprintf(stderr,"mixer_readvol[%s]: %s\n",mixer_names[i],strerror(errno)); mix->cur_vol[i]=-1; /* mix->mask&=~(1<old_vol[i]!=mix->cur_vol[i]; } else mix->cur_vol[i]=-1; } return change; } /* * mixer_open(char) * * opens the specified device as mixer and call getinfo and readvols * * returns a pointer to a MIXER struct on success or NULL on failure */ MIXER *mixer_open(char *device) { MIXER *mix=NULL; mix=malloc(sizeof(MIXER)); if (mix==NULL) { perror("mixer_open[malloc]"); return NULL; } mix->fd=open(device,0); if (mix->fd<0) { fprintf(stderr,"mixer_open: %s\n",strerror(errno)); free(mix); return NULL; } mix->device=strdup(device); mixer_getinfo(mix); mixer_readvols(mix); return mix; } /* * mixer_close(MIXER) * * closes the mixer and frees all data */ void mixer_close(MIXER *mix) { if (mix) { close(mix->fd); if (mix->device) free(mix->device); free(mix); } } /* * mixer_setvol(mix,dev,vol) * * sets the specified device to a mono volume * * returns 0 on success */ int mixer_setvol(MIXER *mix, int dev, int vol) { if (!mix || mix->fd==0) return -1; if (!mixer_isdevice(mix,dev)) { #ifdef DEBUG fprintf(stderr,"mixer_setvol: unsupported device\n"); #endif return 1; } if (vol<0) vol=0; if (vol>100) vol=100; if (mixer_isstereo(mix,dev)) mixer_setvols(mix,dev,vol,vol); else { vol=mixer_makevol(vol,vol); if (ioctl(mix->fd,MIXER_WRITE(dev),&vol)) perror("mixer_setvol[write]"); #ifdef DEBUG else fprintf(stderr,"mixer_setvol[set]: vol set to %02d\n",vol>>8); #endif } return 0; } /* * mixer_setvols(mix,dev,left,right) * * sets the specified device to a stereo volume * * returns 0 on success */ int mixer_setvols(MIXER *mix, int dev, int left, int right) { int vol; if (!mix || mix->fd==0) return -1; if (!mixer_isdevice(mix,dev)) { #ifdef DEBUG fprintf(stderr,"mixer_setvols: unsupported device\n"); #endif return 1; } if (left<0) left=0; if (left>100) left=100; if (right<0) right=0; if (right>100) right=100; vol=mixer_makevol(left,right); if (mixer_ismono(mix,dev)) mixer_setvol(mix,dev,(left+right)/2); else { if (ioctl(mix->fd,MIXER_WRITE(dev),&vol)) perror("mixer_setvols[write]"); #ifdef DEBUG else fprintf(stderr,"mixer_setvols[set]: vol set to %02d:%02d\n", vol&0xff,(vol>>8)&0xff); #endif } return 0; } /* * mixer_setrecsrc(mix,dev,state) * * sets or clears the RECSRC state of the specified device * * returns 0 on success */ int mixer_setrecsrc(MIXER *mix, int dev, int state, int exclusive) { int new; if (!mix || mix->fd==0) return -1; if (mixer_isdevice(mix,dev) && mixer_isrecdev(mix,dev)) { mix->old_recsrc=mix->recsrc; if (state) { if (mix->caps&SOUND_CAP_EXCL_INPUT || exclusive) new=(1<recsrc|(1<recsrc&(~(1<fd,SOUND_MIXER_WRITE_RECSRC,&new)) perror("mixer_serrecsrc[write]"); else { if (ioctl(mix->fd,SOUND_MIXER_READ_RECSRC,&mix->recsrc)) { perror("mixer_setrecsrc[read]"); mix->recsrc=0; } #ifdef DEBUG else fprintf(stderr,"mixer_setrecsrc[read]: %s is %s\n", mixer_names[dev], mixer_isrecsrc(mix,dev)?"RECSRC":"not RECSRC"); #endif } } else { #ifdef DEBUG fprintf(stderr,"mixer_setrecsrc: unsupported device\n"); #endif return 1; } return 0; } int mixer_changevol(MIXER *mix, int dev, int delta) { int left, right; if (!mix || mix->fd==0) return -1; if (!mixer_isdevice(mix,dev)) { #ifdef DEBUG fprintf(stderr,"mixer_changevol: unsupported device\n"); #endif return 1; } if (mixer_isstereo(mix,dev)) { left=mixer_volleft(mix,dev)+delta; if (left<0) left=0; if (left>100) left=100; right=mixer_volright(mix,dev)+delta; if (right<0) right=0; if (right>100) right=100; left=mixer_makevol(left,right); } else { left=mixer_volmono(mix,dev)+delta; if (left<0) left=0; if (left>100) left=100; left=mixer_makevol(left,left); } if (ioctl(mix->fd,MIXER_WRITE(dev),&left)) perror("mixer_changevol[write]"); #ifdef DEBUG else fprintf(stderr,"mixer_changevol[set]: vol set to %02d:%02d\n",left&0xff,left>>8); #endif return 0; } int mixer_changeleft(MIXER *mix, int dev, int delta) { int vol; if (!mix || mix->fd==0) return -1; if (!mixer_isdevice(mix,dev)) { #ifdef DEBUG fprintf(stderr,"mixer_changeleft: unsupported device\n"); #endif return 1; } if (mixer_ismono(mix,dev)) mixer_changevol(mix,dev,delta); else { vol=mixer_volleft(mix,dev)+delta; if (vol<0) vol=0; if (vol>100) vol=100; vol=mixer_makevol(vol,mixer_volright(mix,dev)); if (ioctl(mix->fd,MIXER_WRITE(dev),&vol)) perror("mixer_changeleft[write]"); #ifdef DEBUG else fprintf(stderr,"mixer_changeleft[set]: vol set to %02d:%02d\n", vol&0xff,(vol>>8)&0xff); #endif } return 0; } int mixer_changeright(MIXER *mix, int dev, int delta) { int vol; if (!mix || mix->fd==0) return -1; if (!mixer_isdevice(mix,dev)) { #ifdef DEBUG fprintf(stderr,"mixer_changeright: unsupported device\n"); #endif return 1; } if (mixer_ismono(mix,dev)) mixer_changevol(mix,dev,delta); else { vol=mixer_volright(mix,dev)+delta; if (vol<0) vol=0; if (vol>100) vol=100; vol=mixer_makevol(mixer_volleft(mix,dev),vol); if (ioctl(mix->fd,MIXER_WRITE(dev),&vol)) perror("mixer_changeright[write]"); #ifdef DEBUG else fprintf(stderr,"mixer_changeright[set]: vol set to %02d:%02d\n", vol&0xff,(vol>>8)&0xff); #endif } return 0; } int mixer_changebal(MIXER *mix, int dev, int delta) { int left, right; if (!mix || mix->fd==0) return -1; if (!mixer_isdevice(mix,dev)) { #ifdef DEBUG fprintf(stderr,"mixer_changebal: unsupported device\n"); #endif return 1; } if (mixer_ismono(mix,dev)) mixer_changevol(mix,dev,delta); else { left=mixer_volleft(mix,dev)-delta; right=mixer_volright(mix,dev)+delta; if (left<0) { right+=left; left=0; } if (right<0) { left+=right; right=0; } if (left>100) { right+=(left-100); left=100; } if (right>100) { left+=(right-100); right=100; } left=mixer_makevol(left,right); if (ioctl(mix->fd,MIXER_WRITE(dev),&left)) perror("mixer_changebal[write]"); #ifdef DEBUG else fprintf(stderr,"mixer_changebal[set]: vol set to %02d:%02d\n", left&0xff,(left>>8)&0xff); #endif } return 0; } wmrack-1.4/mixer.h0000644000175000017500000000350607736654303013232 0ustar xtifrxtifr/* * $Id: mixer.h,v 1.2 2003/10/01 22:44:19 xtifr Exp $ * * Copyright (c) 1997 by Oliver Graf */ #ifndef WMRACK_MIXER_H_ #define WMRACK_MIXER_H_ extern char *mixer_labels[]; extern char *mixer_names[]; extern char *mixer_shortnames[]; extern int mixer_devices; typedef struct { char *device; int fd; char id[16]; char name[32]; int mask; int recmask; int recsrc; int old_recsrc; int stereo; int caps; int cur_vol[32]; int old_vol[32]; } MIXER; #define mixer_isdevice(m,d) ((dmask&(1<stereo&(1<recsrc&(1<recmask&(1<cur_vol[d]>>8)&0xff):-1) #define mixer_volleft(m,d) (mixer_isstereo(m,d)?((dcur_vol[d]&0xff):-1):mixer_volmono(m,d)) #define mixer_volright(m,d) mixer_volmono(m,d) #define mixer_volchanged(m,d) (mixer_isdevice(m,d)?(m->old_vol[d]!=m->cur_vol[d]):0) #define mixer_srcchanged(m,d) (mixer_isrecdev(m,d) \ ? ((m->old_recsrc&(1<recsrc&(1< .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software .\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA .\" .ds = \-\^\- .de Sp .if t .sp .3 .if n .sp .. .TH WMrack 1 "1 June 1997" wmrack .UC .SH NAME \fBwmrack\fP \- CD Player and Mixer dock applet .SH SYNOPSIS .B wmrack [options] .SH DESCRIPTION The \fBwmrack\fP is a combined CD player and Audio Mixer designed to be used with WindowMaker's dock. It can also be used with other window managers, and can be swallowed by a variety of tools, such as fvwm's button bar or gnome's panel. \fBwmrack\fP handles mounted volumes, opens and closes the tray, can display the current position in various ways and skips also data tracks. It gives you access to all your mixer devices, so that you may change volume or balance and set the record source. .SH OPTIONS .TP \fB\-b\fP \fBCOLSPEC\fP or \fB\*=background\fP \fBCOLSPEC\fP Specifies the background color of the LED. It is avaiable through the symbolic XPM colorname .I led_color_black. .SP The other colors of the LED can be changed using the \fB-l\fP option. .Sp To find out what colors are available, try .I showrgb (part of X11). .TP \fB\-d\fP \fBDEVICE\fP or \fB\*=device\fP \fBDEVICE\fP Sets the CD-ROM device. This defaults to /dev/cdrom. .TP \fB\-h\fP or \fB\*=help\fP Prints a summary of supported options and their default values. .TP \fB\-l\fP \fBCOLSPEC\fP or \fB\*=ledcolor\fP \fBCOLSPEC\fP Specifies the color of the led. It is darkened two times (for a total of three colors) to get all needed colors. So better use a bright color. .Sp For the design of own XPM, the ledcolor is made avaiable through the use of the symbolic xpm color names .I led_color_high, .I led_color_low, and .I led_color_med. There is also a symbol named .I led_color_back to get the default background color of the led\-display. It can be changed using the \fB-l\fP option. .Sp To find out what colors are available, try .I showrgb (part of X11). .TP \fB\-m\fP \fBDEVICE\fP or \fB\*=mixer\fP \fBDEVICE\fP Sets the MIXER device. This defaults to /dev/mixer. .TP \fB\-p\fP or \fB\*=noprobe\fP This option disables the startup probing for a cd. Default is to probe the cdrom. This will close the tray and read the TOC of the cd (if there is one). .TP \fB\-s\fP \fBSTYLEFILE\fP or \fB\*=style\fP \fBSTYLEFILE\fP .B wmrack will try to load its window\-pixmaps from the specified .B STYLEFILE. It will search this file for XPM pixmaps named .I cdnodisc, .I cdplaying, .I cdpaused, .I cdstopped, .I cdled, .I mixer, and .I mixled. If some of those are not defined, the compile\-time defaults will be used. .TP \fB\-w\fP or \fB\*=withdrawn\fP Starts the .B wmrack in withdrawn window state. This is useful to dock the window to .B WindowMaker. .TP \fB\-M\fP \fBMODESTRING\fP or \fB\*=mode\fP \fBMODESTRING\fP By default .B wmrack will startup showing the CDROM controls. With this option you can specify what controls should be shown. Valid \fBMODESTRINGS\FP are .I cdrom, and .I mixer. .SH INVOCATION \fBwmrack\fP can be called using different ways. The most common invocation is from your dock file: .Sp wmrack WMRack \fIPOSITION\fP 2 -1 0 wmrack --withdrawn .Sp Another way to call \fBwmrack\fP is to swallow it into the \fBafterstep(1)\fP \fBWharf(1)\fP. This is best done placing the following line into your \fI.steprc\fP: .Sp *Wharf WMRack nil Swallow "wmrack" wmrack & .Sp This method will also work for other button\-bars, such as the \fBFvwmButtons(1)\fP of the \fBfvwm(1)\fP window manager. .SH GENERAL USAGE The \fBwmrack\fP features a simple click interface. All times the buttons will show a standart sign which specifies the action it will do. But there are some noteable extensions to that explained below. .Sp You can always change the controls shown by clicking the middle button (this is the one which shows a disc or a speaker) of the controls. This button will show a symbol of the controls you can change to by pressing it (the disc and the speaker). .Sp If you click this button with Control-Button-3, \fBWMrack\fP will exit. .SH CDROM USAGE The default behavior of \fBwmrack\fP is to try to read the cdrom at startup. If there was no cd, it will not try again unless you press the close or play button. This will close the cdrom and again try to read it. Unless there is a cd, \fBwmrack\fP will again suspend until your next action. .TP .B open tray Clicking an open/eject button with button-3 will always open the tray. .TP .B skip By pressing the button down and holding it on one of the prev/next track buttons the cdrom goes fast forward or backward. .TP .B time left A button-1 click into the time display switches between time running and time left display. .TP .B total time A button-2 click into the time display switches between track and total time. .TP .B repeat A button-3 click into the time display cycles through normal mode, repeat all, and repeat one play mode. .PP The cd player also offers a play list functionality. By default it will map out all data tracks of the current cdrom, but you can also randomize the list or program it to the tracks you want to hear. These functions are only avaiable while a cdrom is in the drive and the drive is \fIstopped\fP. .TP .B randomize Clicking Control-Button-3 to the track display causes the playlist to be randomized. No track will repeat, the tracks are just mixed up. .Sp You will see the short message \fIRA:ND\fP in the time display. .TP .B start programming Click Control-Button-1 into the track display to start programing a new playlist. You will see a short \fIPR:OG\fP message in the time display and a \fIM\fP will show up in the lower left corner of the display. .TP .B add track to list Use the prev-/next-track buttons to select a track and click Mod1-Button-1 into the track display to add it to the playlist. The time display will show the number of the tracks in the list and the number of the selected track for a short time and will than switch back and display the total ength of the playlist. .TP .B clear list To abort the programing of a playlist click Control-Button-1 into the track-display. .TP .B start playing the list Simply press the PLAY button to play the list. .SH MIXER USAGE Main controls of the mixer are the two volume scales at the left and the right side of the display. Using the mouse the scales can be modified. .TP .B button-1 change volume of clicked scale .TP .B button-2 change volume of both scales .TP .B button-3 change the balance of the volume .PP Clicking into the alphanumeric display changes the currently shown mixer device. Some of the valid devices are VOlume, BAss, TReble, SYnth, PCm, SPeaker, LIne, MIc, CD, MiXer, Pcm2, REcord, IGain, OGain, Line1, Line2, and Line3. You can also remove devices from this list. .TP .B button-1 go to the next device .TP .B button-2 go to the main volume (first device) .TP .B button-3 go to the previous device .TP .B control-button-1 show all devices .TP .B control-button-3 remove current device .PP Below the change-controls button is the record source button. It show either a 'X' and is inactive, or it show a speaker or a recording sign and is active. By pressing this button you can change the source of your recordings. .TP .B button-1 toggle record source button .TP .B button-2 set as record source and clear all other .SH COPYRIGHTS Copyright 1997, Oliver Graf . 2003-2006, Chris Waters Most styles copyright 1997, Heiko Wagner . .Sp No guarantees or warranties or anything are provided or implied in any way whatsoever. Use this program at your own risk. Permission to use this program for any purpose is given, as long as the copyright is kept intact. The program and its source code may be copied under the terms of the GNU General Public License. See the file "COPYING" for details. .SH AUTHORS Oliver Graf -- original author .Sp Chris Waters -- current maintainer .Sp Heiko Wagner -- the hyped window shapes .SH CREDITS Rob Malda -- who had written ascd and asmixer .Sp Michael Kurz -- also for ascd and asmixer .Sp Thomas McWilliams -- who has done Workbone wmrack-1.4/wmrack.c0000644000175000017500000011302110722402037013337 0ustar xtifrxtifr/* * $Id: wmrack.c,v 1.6 2007/11/25 23:24:15 xtifr Exp $ * * WMRack - WindowMaker Sound Control Panel * * Copyright (c) 1997 by Oliver Graf * copyright 2003-2006 by Chris Waters * * ascd originally by Rob Malda * http://www.cs.hope.edu/~malda/ * * This is an 'WindowMaker Look & Feel' Dock applet that can be * used to control the cdrom and the mixer. * * Should also work swallowed in any fvwm compatible button bar. */ #define WMR_VERSION "1.4" #include #include #include #include #include #include #include #include #include #include #include #include #include "xpmicon.h" #include "xpmsize.h" #include "cdrom.h" #include "mixer.h" #include "library.h" #define MAXRCLINE 1024 #define POLLFREQ 50000L /* microseconds between checking events */ /* Functions *****************************************************************/ void usage (); void parseCmdLine (int argc, char *argv[]); void initHandler (); void createWindow (int, char **); void shutDown (int); void mainLoop (); int flushExpose (Window w); void redrawWindow (); void redrawDisplay (int force_win, int force_disp); Pixel getColor (char *name); Time getTime (); int loadMixerRC (); int saveMixerRC (); void rack_popup (char *msg); /* Global stuff **************************************************************/ Display *Disp; Window Root; Window Iconwin; Window Win; char *Geometry = 0; GC WinGC; /* varibles for the options */ char *StyleXpmFile = NULL; char *LedColor = NULL; char *BackColor = NULL; char CdDevice[1024] = "/dev/cdrom"; char MixerDevice[1024] = "/dev/mixer"; int withdraw = 0; int noprobe = 0; MSF last_time = { -1, -1, -1 }; int last_track = -1; int last_cdmode = -1; /* to sense a change */ int displaymode = 0; /* bit 1 is run/remain, bit 2 is track/total */ int newdisc = 0; int curMixer = 0; /* this is the device number of the currently shown mixer scale */ int lastMixer = 0; char *popup_display = NULL; time_t popup_time = 0; int popup_done = 0; /* Mode of WMRack */ #define MODE_CDPLAYER 0 #define MODE_MIXER 1 int WMRack_Mode = MODE_CDPLAYER; /* our cd device */ CD *cd = NULL; CDPlayList *playlist = NULL; int start_track = 0; /* and the mixer */ MIXER *mixer = NULL; int mixer_order[32], mixer_max = 0; LIBRARY *mixer_lib = NULL; /* * start the whole stuff and enter the MainLoop */ int main (int argc, char *argv[]) { struct timeval tm; parseCmdLine (argc, argv); cd = cd_open (CdDevice, noprobe); if (cd_getStatus (cd, 0, 1) > 0) { if (cd->info.list.tracks == 0) { rack_popup ("DATA"); cd_suspend (cd); } else newdisc = 1; } mixer = mixer_open (MixerDevice); loadMixerRC (); #ifdef DEBUG fprintf (stderr, "wmrack: Mixer RC loaded\n"); #endif initHandler (); gettimeofday (&tm, NULL); srandom (tm.tv_usec ^ tm.tv_sec); createWindow (argc, argv); mainLoop (); return 0; } /* * usage() * * print out usage text and exit */ void usage () { fprintf (stderr, "wmrack - Version " WMR_VERSION "\n"); fprintf (stderr, "usage: wmrack [OPTIONS] \n"); fprintf (stderr, "\n"); fprintf (stderr, "OPTION DEFAULT DESCRIPTION\n"); fprintf (stderr, "-b|--background COLSPEC black color of the led background\n"); fprintf (stderr, "-d|--device DEV /dev/cdrom device of the Drive\n"); fprintf (stderr, "-h|--help none display help\n"); fprintf (stderr, "-l|--ledcolor COLSPEC green set the color of the led\n"); fprintf (stderr, "-m|--mixer DEV /dev/mixer device of the Mixer\n"); fprintf (stderr, "-p|--noprobe off disable the startup probe\n"); fprintf (stderr, "-s|--style STYLEFILE compile-time load an alternate set of xpm\n"); fprintf (stderr, "-w|--withdrawn off start withdrawn or not\n"); fprintf (stderr, "-M|--mode [cd|mixer] cd start in which mode\n"); fprintf (stderr, "\n"); exit (1); } /* * parseCmdLine(argc,argv) * * parse the command line args */ void parseCmdLine (int argc, char *argv[]) { int i, j; char opt; struct { char *name; char option; } Options[] = { { "background", 'b'}, { "device", 'd'}, { "withdrawn", 'w'}, { "help", 'h'}, { "ledcolor", 'l'}, { "mixer", 'm'}, { "style", 's'}, { "noprobe", 'p'}, { "mode", 'M'}, { NULL, 0} }; for (i = 1; i < argc; i++) { if (argv[i][0] == '-') { if (argv[i][1] == '-') { for (j = 0; Options[j].name != NULL; j++) if (strcmp (Options[j].name, argv[i] + 2) == 0) { opt = Options[j].option; break; } if (Options[j].name == NULL) usage (); } else { if (argv[i][2] != 0) usage (); opt = argv[i][1]; } switch (opt) { case 'b': /* Led Color */ if (++i >= argc) usage (); BackColor = strdup (argv[i]); continue; case 'd': /* Device */ if (++i >= argc) usage (); strcpy (CdDevice, argv[i]); continue; case 'w': /* start Withdrawn */ withdraw = 1; continue; case 'h': /* usage */ usage (); break; case 'l': /* Led Color */ if (++i >= argc) usage (); LedColor = strdup (argv[i]); continue; case 'm': /* Device */ if (++i >= argc) usage (); strcpy (MixerDevice, argv[i]); continue; case 's': if (++i >= argc) usage (); StyleXpmFile = strdup (argv[i]); continue; case 'p': noprobe = 1; continue; case 'M': if (++i >= argc) usage (); if (strcmp (argv[i], "cd") == 0) { WMRack_Mode = MODE_CDPLAYER; curRack = RACK_NODISC; } else if (strcmp (argv[i], "mixer") == 0) { WMRack_Mode = MODE_MIXER; curRack = RACK_MIXER; } continue; default: usage (); } } else usage (); } } /* * initHandler() * * inits the signal handlers * note: this function is not currently recursive (shouldn't be an issue) */ void initHandler () { static struct sigaction sa; sa.sa_handler = shutDown; sigfillset (&sa.sa_mask); sa.sa_flags = 0; sigaction (SIGTERM, &sa, NULL); sigaction (SIGINT, &sa, NULL); sigaction (SIGHUP, &sa, NULL); sigaction (SIGQUIT, &sa, NULL); sigaction (SIGPIPE, &sa, NULL); sa.sa_handler = SIG_IGN; sigaction (SIGUSR1, &sa, NULL); sigaction (SIGUSR2, &sa, NULL); } /* * createWindow(argc,argv) * * create the basic shaped window and set all the required stuff */ void createWindow (int argc, char **argv) { int i; unsigned int borderwidth; char *display_name = NULL; char *wname = "wmrack"; XGCValues gcv; unsigned long gcm; XTextProperty name; Pixel back_pix, fore_pix; int screen; int x_fd; int d_depth; int ScreenWidth, ScreenHeight; XSizeHints SizeHints; XWMHints WmHints; XClassHint classHint; /* Open display */ if (!(Disp = XOpenDisplay (display_name))) { fprintf (stderr, "wmrack: can't open display %s\n", XDisplayName (display_name)); exit (1); } screen = DefaultScreen (Disp); Root = RootWindow (Disp, screen); d_depth = DefaultDepth (Disp, screen); x_fd = XConnectionNumber (Disp); ScreenHeight = DisplayHeight (Disp, screen); ScreenWidth = DisplayWidth (Disp, screen); xpm_setDefaultAttr (Disp, Root, LedColor, BackColor); if (StyleXpmFile) { if (xpm_loadSet (Disp, Root, StyleXpmFile)) { fprintf (stderr, "wmrack: can't load and create pixmaps\n"); XCloseDisplay (Disp); exit (1); } } else if (xpm_setDefaultSet (Disp, Root, RACK_MAX)) { fprintf (stderr, "wmrack: can't create pixmaps\n"); XCloseDisplay (Disp); exit (1); } SizeHints.flags = USSize | USPosition; SizeHints.x = 0; SizeHints.y = 0; back_pix = getColor ("white"); fore_pix = getColor ("black"); XWMGeometry (Disp, screen, Geometry, NULL, (borderwidth = 1), &SizeHints, &SizeHints.x, &SizeHints.y, &SizeHints.width, &SizeHints.height, &i); SizeHints.width = rackXpm[curRack].attributes.width; SizeHints.height = rackXpm[curRack].attributes.height; Win = XCreateSimpleWindow (Disp, Root, SizeHints.x, SizeHints.y, SizeHints.width, SizeHints.height, borderwidth, fore_pix, back_pix); Iconwin = XCreateSimpleWindow (Disp, Win, SizeHints.x, SizeHints.y, SizeHints.width, SizeHints.height, borderwidth, fore_pix, back_pix); XSetWMNormalHints (Disp, Win, &SizeHints); classHint.res_name = "wmrack"; classHint.res_class = "WMRack"; XSetClassHint (Disp, Win, &classHint); XSelectInput (Disp, Win, (ExposureMask | ButtonPressMask | ButtonReleaseMask | StructureNotifyMask | ButtonMotionMask)); XSelectInput (Disp, Iconwin, (ExposureMask | ButtonPressMask | ButtonReleaseMask | StructureNotifyMask | ButtonMotionMask)); if (XStringListToTextProperty (&wname, 1, &name) == 0) { fprintf (stderr, "wmrack: can't allocate window name\n"); exit (-1); } XSetWMName (Disp, Win, &name); /* Create WinGC */ gcm = GCForeground | GCBackground | GCGraphicsExposures; gcv.foreground = fore_pix; gcv.background = back_pix; gcv.graphics_exposures = False; WinGC = XCreateGC (Disp, Root, gcm, &gcv); XShapeCombineMask (Disp, Win, ShapeBounding, 0, 0, rackXpm[curRack].mask, ShapeSet); XShapeCombineMask (Disp, Iconwin, ShapeBounding, 0, 0, rackXpm[curRack].mask, ShapeSet); WmHints.initial_state = withdraw ? WithdrawnState : NormalState; WmHints.icon_window = Iconwin; WmHints.window_group = Win; WmHints.icon_x = SizeHints.x; WmHints.icon_y = SizeHints.y; WmHints.flags = StateHint | IconWindowHint | IconPositionHint | WindowGroupHint; XSetCommand (Disp, Win, argv, argc); XSetWMHints (Disp, Win, &WmHints); XMapWindow (Disp, Win); redrawDisplay (1, 1); } /* * shutDown(int sig) * * handler for signal and close-down function */ void shutDown (int sig) { #ifdef DEBUG if (sig) fprintf (stderr, "wmrack: got signal %s\n", strsignal (sig)); else fprintf (stderr, "wmrack: manual shutdown\n"); fprintf (stderr, "wmrack: Shutting down\n"); #endif saveMixerRC (); #ifdef DEBUG fprintf (stderr, "wmrack: mixer RC written\n"); #endif cd_close (cd); #ifdef DEBUG fprintf (stderr, "wmrack: cd closed\n"); #endif mixer_close (mixer); #ifdef DEBUG fprintf (stderr, "wmrack: mixer closed\n"); #endif /* cause it's no good, this is commented out (CloseDisplay woes) xpm_freeSet(Disp); # ifdef DEBUG fprintf(stderr,"wmrack: XPMs freed\n"); # endif XFreeGC(Disp, WinGC); # ifdef DEBUG fprintf(stderr,"wmrack: GC freed\n"); # endif XDestroyWindow(Disp, Win); # ifdef DEBUG fprintf(stderr,"wmrack: Win destroyed\n"); # endif XDestroyWindow(Disp, Iconwin); # ifdef DEBUG fprintf(stderr,"wmrack: Iconwin destroyed\n"); # endif */ XCloseDisplay (Disp); #ifdef DEBUG fprintf (stderr, "wmrack: Display closed\n"); #endif exit (0); } /* * mainLoop() * * the main event loop */ void mainLoop () { XEvent Event; Time when; Time press_time = -1; int skip_count, skip_amount, skip_delay; int force_win = 0, force_disp = 0; int change_volume = 0, vol_y, vol_side; while (1) { /* Check events */ while (XPending (Disp)) { XNextEvent (Disp, &Event); switch (Event.type) { case Expose: if (Event.xexpose.count == 0) last_time.minute = last_time.second = last_time.frame = -1; force_win = 1; break; case ButtonPress: switch (WMRack_Mode) { case MODE_CDPLAYER: newdisc = 0; cd_getStatus (cd, 0, 0); if (IN_CD_TIME_WIDGET (Event)) { switch (Event.xbutton.button) { case 1: if (cd->info.current.mode == CDM_PLAY) displaymode ^= 1; break; case 2: if (cd->info.current.mode == CDM_PLAY) displaymode ^= 2; break; case 3: switch (cd->info.play.repeat_mode) { case CDR_NONE: cd->info.play.repeat_mode = CDR_ALL; break; case CDR_ALL: cd->info.play.repeat_mode = CDR_ONE; break; default: cd->info.play.repeat_mode = CDR_NONE; break; } if (cd->info.play.repeat_mode == 2 && cd->info.current.mode == CDM_PLAY) start_track = cd->info.current.track; break; } force_disp = 1; } else if (IN_CD_PLAY_BUTTON (Event)) { if (cd->info.current.mode == CDM_PLAY || cd->info.current.mode == CDM_PAUSE) cd_doPause (cd); else if (cd->info.current.mode == CDM_EJECT) { if (cd_getStatus (cd, 1, 0)) { start_track = 0; if (cd->info.list.tracks == 0) { rack_popup ("DATA"); cd_suspend (cd); } else { newdisc = 1; cd_doPlay (cd, start_track); } } } else { if (playlist != NULL) { cd_setpl (cd, playlist); cdpl_free (playlist); playlist = NULL; cd_doPlay (cd, 0); } else cd_doPlay (cd, start_track); } } else if (IN_CD_STOP_BUTTON (Event)) { if (cd->info.current.mode == CDM_PLAY || cd->info.current.mode == CDM_PAUSE) { cd_doStop (cd); start_track = cd->info.play.cur_track; } else if (cd->info.current.mode == CDM_EJECT) { if (Event.xbutton.button == 3) cd_doEject (cd); else { if (cd_getStatus (cd, 1, 1)) { start_track = 0; if (cd->info.list.tracks == 0) { rack_popup ("DATA"); cd_suspend (cd); } else newdisc = 1; } } } else cd_doEject (cd); } else if (IN_CD_PREV_BUTTON(Event)) { press_time = Event.xbutton.time; skip_count = 0; skip_delay = 8; skip_amount = -1; } else if (IN_CD_NEXT_BUTTON(Event)) { press_time = Event.xbutton.time; skip_count = 0; skip_delay = 8; skip_amount = 1; } else if (IN_CD_TRACK_WIDGET(Event)) { if (cd->info.current.mode != CDM_STOP) break; if (Event.xbutton.state & ControlMask) { switch (Event.xbutton.button) { case 1: if (playlist != NULL) { cdpl_free (playlist); playlist = NULL; force_disp = 1; } else { playlist = cdpl_new (); cd_resetpl (cd); rack_popup ("PROG"); } break; case 3: if (playlist != NULL) cdpl_free (playlist); playlist = NULL; cd_randomize (cd); rack_popup ("RAND"); break; } } else if (Event.xbutton.state & Mod1Mask && playlist != NULL) { char num[20]; /* add current track to playlist */ cdpl_add (playlist, cd, start_track); sprintf (num, "%02d%02d", playlist->tracks, playlist->track[playlist->tracks - 1]); rack_popup (num); } } else if (IN_RACK_SWITCH_BUTTON(Event)) { if (Event.xbutton.button == 3 && (Event.xbutton.state & ControlMask)) shutDown (0); WMRack_Mode = MODE_MIXER; force_win = 1; } #ifdef DEBUG else fprintf (stderr,"WMRack: click outside widgets\n"); #endif break; case MODE_MIXER: if (IN_MX_SLIDER(Event)) { int change; /* change volume */ change_volume = Event.xbutton.button; vol_y = Event.xbutton.y_root; vol_side = IN_MX_LEFT_SLIDER (Event); switch (change_volume) { case 1: if (vol_side) mixer_setvols (mixer, mixer_order[curMixer], CLICK_VOLUME (Event), mixer_volright (mixer, mixer_order [curMixer])); else mixer_setvols (mixer, mixer_order[curMixer], mixer_volleft (mixer, mixer_order [curMixer]), CLICK_VOLUME (Event)); break; case 2: mixer_setvol (mixer, mixer_order[curMixer], CLICK_VOLUME (Event)); break; case 3: change = (CLICK_VOLUME (Event) - (vol_side ? mixer_volleft (mixer, mixer_order[curMixer]) : mixer_volright (mixer, mixer_order [curMixer]))); if (vol_side) mixer_changebal (mixer, mixer_order[curMixer], -change); else mixer_changebal (mixer, mixer_order[curMixer], change); break; } } else if (IN_MX_CHAN_WIDGET (Event)) { if (Event.xbutton.state & ControlMask) { int i, j, c; switch (Event.xbutton.button) { case 1: /* show all mixer devices */ c = mixer_order[curMixer]; for (j = i = 0; i < mixer_devices; i++) if (mixer_isdevice (mixer, i)) { if (i == c) curMixer = j; mixer_order[j++] = i; } mixer_max = j; force_disp = 1; break; case 3: /* delete this device */ if (mixer_max > 1) { if (curMixer == mixer_max - 1) curMixer--; else memmove (&mixer_order[curMixer], &mixer_order[curMixer + 1], sizeof (int) * (mixer_max - curMixer)); mixer_max--; force_disp = 1; } break; } } else { switch (Event.xbutton.button) { case 1: do { curMixer++; if (curMixer == mixer_max) curMixer = 0; } while (!mixer_isdevice (mixer, mixer_order [curMixer])); break; case 2: curMixer = 0; break; case 3: do { if (curMixer == 0) curMixer = mixer_max; curMixer--; } while (!mixer_isdevice (mixer, mixer_order [curMixer])); break; } } } else if (IN_MX_MUTE_BUTTON (Event)) { if (!mixer_isrecdev (mixer, mixer_order[curMixer])) break; switch (Event.xbutton.button) { case 1: mixer_setrecsrc (mixer, mixer_order[curMixer], mixer_isrecsrc (mixer, mixer_order [curMixer]) ? 0 : 1, 0); break; case 2: mixer_setrecsrc (mixer, mixer_order[curMixer], 1, 1); break; } } else if (IN_RACK_SWITCH_BUTTON (Event)) { if (Event.xbutton.button == 3 && (Event.xbutton.state & ControlMask)) shutDown (0); WMRack_Mode = MODE_CDPLAYER; force_win = 1; } #ifdef DEBUG else fprintf (stderr,"WMRack: click outside widgets\n"); #endif break; } break; case MotionNotify: switch (WMRack_Mode) { case MODE_MIXER: if (change_volume) { if ((Event.xmotion.y_root - vol_y) / 8) { int change = ((vol_y - Event.xmotion.y_root) / 8) * 10; switch (change_volume) { case 1: if (vol_side) mixer_changeleft (mixer, mixer_order[curMixer], change); else mixer_changeright (mixer, mixer_order[curMixer], change); break; case 2: mixer_changevol (mixer, mixer_order[curMixer], change); break; case 3: if (vol_side) mixer_changebal (mixer, mixer_order[curMixer], -change); else mixer_changebal (mixer, mixer_order[curMixer], change); } vol_y = Event.xmotion.y_root; } } } break; case ButtonRelease: switch (WMRack_Mode) { case MODE_CDPLAYER: if (press_time == -1) break; if (IN_CD_PREV_BUTTON (Event) && Event.xbutton.time - press_time < 200) { if (cd->info.current.mode == CDM_PLAY || cd->info.current.mode == CDM_PAUSE) { if (cd->info.current.relmsf.minute || cd->info.current.relmsf.second > 2) cd_doPlay (cd, cd->info.current.track); else cd_doPlay (cd, cd->info.current.track - 1); } else if (cd->info.current.mode == CDM_STOP) { if (start_track > 0) start_track--; else start_track = cd->info.list.tracks - 1; } } else if (IN_CD_NEXT_BUTTON (Event) && Event.xbutton.time - press_time < 200) { if (cd->info.current.mode == CDM_PLAY || cd->info.current.mode == CDM_PAUSE) { if (cd->info.current.track < cd->info.list.tracks - 1) cd_doPlay (cd, cd->info.current.track + 1); } else if (cd->info.current.mode == CDM_STOP) { if (start_track < cd->info.list.tracks - 1) start_track++; else start_track = 0; } } break; case MODE_MIXER: if (change_volume) { change_volume = 0; } break; } press_time = -1; change_volume = 0; break; case DestroyNotify: shutDown (SIGTERM); break; } XFlush (Disp); } /* now check for a pressed button */ if (press_time != -1) { if (cd->info.current.mode == CDM_PLAY) { when = getTime (); if (when - press_time > 500) { /* this is needed because of the faster pace */ cd_getStatus (cd, 0, 1); skip_count++; if (skip_count % skip_delay == 0) { if (IN_CD_PREV_BUTTON (Event)) cd_doSkip (cd, skip_amount); else if (IN_CD_NEXT_BUTTON (Event)) cd_doSkip (cd, skip_amount); } switch (skip_count) { case 5: case 10: case 20: skip_delay >>= 1; break; } } } } /* do a redraw of the LED display */ redrawDisplay (force_win, force_disp); usleep (POLLFREQ); force_win = force_disp = 0; } } /* * flushExpose(window) * * remove any Expose events from the current EventQueue */ int flushExpose (Window w) { XEvent dummy; int i = 0; while (XCheckTypedWindowEvent (Disp, w, Expose, &dummy)) i++; return i; } /* * redrawWindow() * * combine mask and draw pixmap */ void redrawWindow () { flushExpose (Win); flushExpose (Iconwin); XShapeCombineMask (Disp, Win, ShapeBounding, 0, 0, rackXpm[curRack].mask, ShapeSet); XShapeCombineMask (Disp, Iconwin, ShapeBounding, 0, 0, rackXpm[curRack].mask, ShapeSet); XCopyArea (Disp, rackXpm[curRack].pixmap, Win, WinGC, 0, 0, rackXpm[curRack].attributes.width, rackXpm[curRack].attributes.height, 0, 0); XCopyArea (Disp, rackXpm[curRack].pixmap, Iconwin, WinGC, 0, 0, rackXpm[curRack].attributes.width, rackXpm[curRack].attributes.height, 0, 0); } /* * paint_cd_led(flash,track,cdtime) * * draws the digital numbers to the pixmaps */ void paint_cd_led (int flash, int track[], int cdtime[]) { XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, (track[0] ? 8 * track[0] : 80), 0, 8, 11, 16, 35); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, (track[0] ? 8 * track[0] : 80), 0, 8, 11, 16, 35); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 8 * track[1], 0, 8, 11, 24, 35); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 8 * track[1], 0, 8, 11, 24, 35); if (flash || cd->info.current.mode != CDM_PAUSE) { if (cd->info.current.mode == CDM_PLAY || cd->info.current.mode == CDM_PAUSE) { XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, ((displaymode & 2) ? 94 : 98), 0, 4, 5, 3, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, ((displaymode & 2) ? 94 : 98), 0, 4, 5, 3, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, ((displaymode & 1) ? 94 : 98), 5, 4, 1, 3, 7); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, ((displaymode & 1) ? 94 : 98), 5, 4, 1, 3, 7); } else { XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 98, 0, 4, 6, 3, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 98, 0, 4, 6, 3, 2); } XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, ((playlist != NULL) ? 94 : 98), 6, 4, 5, 3, 8); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, ((playlist != NULL) ? 94 : 98), 6, 4, 5, 3, 8); if (popup_display == NULL) { XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, (cdtime[0] ? 8 * cdtime[0] : 80), 0, 8, 11, 7, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, (cdtime[0] ? 8 * cdtime[0] : 80), 0, 8, 11, 7, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 8 * cdtime[1], 0, 8, 11, 15, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 8 * cdtime[1], 0, 8, 11, 15, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 88, 0, 3, 11, 23, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 88, 0, 3, 11, 23, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 8 * cdtime[2], 0, 8, 11, 26, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 8 * cdtime[2], 0, 8, 11, 26, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 8 * cdtime[3], 0, 8, 11, 34, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 8 * cdtime[3], 0, 8, 11, 34, 2); } XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, (cd->info.play.repeat_mode != CDR_NONE ? 102 : 106), 0, 4, 5, 42, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, (cd->info.play.repeat_mode != CDR_NONE ? 102 : 106), 0, 4, 5, 42, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, (cd->info.play.repeat_mode == CDR_ONE ? 102 : 106), 6, 4, 5, 42, 8); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, (cd->info.play.repeat_mode == CDR_ONE ? 102 : 106), 6, 4, 5, 42, 8); } else { XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 98, 0, 4, 11, 3, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 98, 0, 4, 11, 3, 2); if (popup_display == NULL) { XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 80, 0, 8, 11, 7, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 80, 0, 8, 11, 7, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 80, 0, 8, 11, 15, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 80, 0, 8, 11, 15, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 91, 0, 3, 11, 23, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 91, 0, 3, 11, 23, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 80, 0, 8, 11, 26, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 80, 0, 8, 11, 26, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 80, 0, 8, 11, 34, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 80, 0, 8, 11, 34, 2); } XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Win, WinGC, 106, 0, 4, 11, 42, 2); XCopyArea (Disp, rackXpm[RACK_LED_PLAYER].pixmap, Iconwin, WinGC, 106, 0, 4, 11, 42, 2); } if (popup_display != NULL) { int disp_pos[4] = { 7, 15, 26, 34 }; char *d; int i, j; #if 0 if (!popup_done) { XFillRectangle(Disp, Win, WinGC, 7, 2, 35, 11); XFillRectangle(Disp, Iconwin, WinGC, 7, 2, 35, 11); popup_done=1; } #endif for (j = 0, d = popup_display; *d; d++, j++) { for (i = 0; ledAlphabet[i]; i++) if (toupper (*d) == ledAlphabet[i]) { XCopyArea (Disp, rackXpm[RACK_LED_ALPHA].pixmap, Win, WinGC, i * 8, 0, 8, 11, disp_pos[j], 2); XCopyArea (Disp, rackXpm[RACK_LED_ALPHA].pixmap, Iconwin, WinGC, i * 8, 0, 8, 11, disp_pos[j], 2); break; } } } } /* * paint_mixer_led() * * draws the digital scales and signs to the pixmaps */ void paint_mixer_led () { int i; /* the device name */ for (i = 0; ledAlphabet[i]; i++) if (toupper (mixer_shortnames[mixer_order[curMixer]][0]) == ledAlphabet[i]) { XCopyArea (Disp, rackXpm[RACK_LED_ALPHA].pixmap, Win, WinGC, i * 8, 0, 8, 11, 16, 2); XCopyArea (Disp, rackXpm[RACK_LED_ALPHA].pixmap, Iconwin, WinGC, i * 8, 0, 8, 11, 16, 2); break; } for (i = 0; ledAlphabet[i]; i++) if (toupper (mixer_shortnames[mixer_order[curMixer]][1]) == ledAlphabet[i]) { XCopyArea (Disp, rackXpm[RACK_LED_ALPHA].pixmap, Win, WinGC, i * 8, 0, 8, 11, 24, 2); XCopyArea (Disp, rackXpm[RACK_LED_ALPHA].pixmap, Iconwin, WinGC, i * 8, 0, 8, 11, 24, 2); break; } /* the recsrc button */ if (mixer_isrecdev (mixer, mixer_order[curMixer])) { if (mixer_isrecsrc (mixer, mixer_order[curMixer])) i = 13; else i = 0; } else i = 26; XCopyArea (Disp, rackXpm[RACK_LED_MIXER].pixmap, Win, WinGC, 44, i, 14, 13, 17, 34); XCopyArea (Disp, rackXpm[RACK_LED_MIXER].pixmap, Iconwin, WinGC, 44, i, 14, 13, 17, 34); /* the volume displays */ /* left */ i = (mixer_volleft (mixer, mixer_order[curMixer]) / 10); if (i < 0) i = 0; if (i > 10) i = 10; i *= 4; XCopyArea (Disp, rackXpm[RACK_LED_MIXER].pixmap, Win, WinGC, i, 0, 3, 39, 4, 4); XCopyArea (Disp, rackXpm[RACK_LED_MIXER].pixmap, Iconwin, WinGC, i, 0, 3, 39, 4, 4); /* right */ i = (mixer_volright (mixer, mixer_order[curMixer]) / 10); if (i < 0) i = 0; if (i > 10) i = 10; i *= 4; XCopyArea (Disp, rackXpm[RACK_LED_MIXER].pixmap, Win, WinGC, i, 0, 3, 39, 41, 4); XCopyArea (Disp, rackXpm[RACK_LED_MIXER].pixmap, Iconwin, WinGC, i, 0, 3, 39, 41, 4); } /* * split this function into the real redraw and a pure * display time/track function. * redraw wants a complete redraw (covering, movement, etc.) * but the display of the time/track does not need this overhead (SHAPE) */ void redrawDisplay (int force_win, int force_disp) { int track[2] = { 0, 0 }; int cdtime[4] = { 0, 0, 0, 0 }; static time_t last_flash_time; static flash = 0; int st = 0, newRack = RACK_NODISC, im_stop = 0; MSF pos; st = cd_getStatus (cd, 0, 0); if (!force_win && !force_disp && popup_display == NULL) { /* test if something has changed */ switch (WMRack_Mode) { case MODE_CDPLAYER: if (cd->info.current.mode != CDM_PAUSE && last_cdmode == cd->info.current.mode && (st < 1 || (last_time.minute == cd->info.current.relmsf.minute && last_time.second == cd->info.current.relmsf.second && last_track == start_track))) return; break; case MODE_MIXER: mixer_readvol (mixer, mixer_order[curMixer]); if (curMixer == lastMixer && !mixer_volchanged (mixer, mixer_order[curMixer]) && !mixer_srcchanged (mixer, mixer_order[curMixer])) return; break; } } #ifdef DEBUG if (last_cdmode != cd->info.current.mode) { fprintf (stderr, "wmrack: cur_cdmode %d\n", cd->info.current.mode); } #endif if (cd->info.current.mode == CDM_STOP && cd->info.play.last_action == CDA_PLAY) start_track = 0; lastMixer = curMixer; last_cdmode = cd->info.current.mode; if (st > 0) { last_time = cd->info.current.relmsf; last_track = start_track; } else { MSFnone (last_time); last_track = -1; } if (cd->info.current.mode == CDM_PAUSE) { time_t flash_time = time (NULL); if (flash_time == last_flash_time && !force_win) return; last_flash_time = flash_time; flash = !flash; } else { last_flash_time = 0; flash = 1; } if (popup_display != NULL) { if (popup_time == 0) popup_time = time (NULL); else { time_t now = time (NULL); if (now > popup_time + 1) { free (popup_display); popup_display = NULL; popup_time = 0; popup_done = 0; } } } newRack = RACK_PLAY; if (WMRack_Mode == MODE_MIXER) newRack = RACK_MIXER; else { switch (cd->info.current.mode) { case CDM_PAUSE: newRack = RACK_PAUSE; case CDM_PLAY: track[0] = cd->info.list.track[cd->info.current.track].num / 10; track[1] = cd->info.list.track[cd->info.current.track].num % 10; switch (displaymode) { case 0: pos = cd->info.current.relmsf; break; case 1: pos = subMSF (cd->info.list.track[cd->info.current.track].length, cd->info.current.relmsf); break; case 2: pos = subMSF (cd->info.current.absmsf, cd->info.track[0].start); break; case 3: pos = subMSF (cd->info.track[cd->info.tracks - 1].end, cd->info.current.absmsf); break; } cdtime[0] = pos.minute / 10; cdtime[1] = pos.minute % 10; cdtime[2] = pos.second / 10; cdtime[3] = pos.second % 10; break; case CDM_STOP: newRack = RACK_STOP; if (newdisc) { track[0] = cd->info.list.tracks / 10; track[1] = cd->info.list.tracks % 10; } else { track[0] = cd->info.list.track[start_track].num / 10; track[1] = cd->info.list.track[start_track].num % 10; } if (playlist == NULL) { cdtime[0] = cd->info.list.length.minute / 10; cdtime[1] = cd->info.list.length.minute % 10; cdtime[2] = cd->info.list.length.second / 10; cdtime[3] = cd->info.list.length.second % 10; } else { cdtime[0] = playlist->length.minute / 10; cdtime[1] = playlist->length.minute % 10; cdtime[2] = playlist->length.second / 10; cdtime[3] = playlist->length.second % 10; } break; case CDM_COMP: newRack = RACK_STOP; goto set_null; case CDM_EJECT: newRack = RACK_NODISC; default: set_null: track[0] = 0; track[1] = 0; cdtime[0] = 0; cdtime[1] = 0; cdtime[2] = 0; cdtime[3] = 0; break; } } if (newRack != curRack || force_win) { /* Mode has changed, paint new mask and pixmap */ curRack = newRack; redrawWindow (); } switch (curRack) { case RACK_MIXER: paint_mixer_led (); break; default: paint_cd_led (flash, track, cdtime); break; } } /* * getColor(colorname) * * save way to get a color from X */ Pixel getColor (char *ColorName) { XColor Color; XWindowAttributes Attributes; XGetWindowAttributes (Disp, Root, &Attributes); Color.pixel = 0; if (!XParseColor (Disp, Attributes.colormap, ColorName, &Color)) fprintf (stderr, "wmrack: can't parse %s\n", ColorName); else if (!XAllocColor (Disp, Attributes.colormap, &Color)) fprintf (stderr, "wmrack: can't allocate %s\n", ColorName); return Color.pixel; } /* * getTime() * * returns the time in milliseconds */ Time getTime () { struct timeval tv; gettimeofday (&tv, NULL); return (tv.tv_sec * 1000) + (tv.tv_usec / 1000); } /* * loadMixerRC() * * loads the mixer defaults */ int loadMixerRC () { char line[MAXRCLINE], dev[MAXRCLINE], src[MAXRCLINE], *d; int i, j, err = 0; int nfields, left, right; mixer_max = 0; mixer_lib = lib_open ("mixer", LIB_READ); if (mixer_lib == NULL) { fprintf (stderr, "wmrack: can't read mixer file\n"); err = -1; goto endload; } while ((lib_gets (mixer_lib, line, MAXRCLINE)) != NULL) { dev[0] = src[0] = '\0'; nfields = sscanf (line, "%s %d:%d %s", &dev, &left, &right, &src); if (nfields >= 3) /* got at least the left & right info */ { for (i = 0; i < mixer_devices; i++) { if (strcmp (mixer_names[i], dev) == 0) { mixer_setvols (mixer, i, left, right); if (strcmp (src, "src") == 0) mixer_setrecsrc (mixer, i, 1, 0); break; } } #ifdef DEBUG if (i == mixer_devices) fprintf (stderr, "wmrack: unsupported device '%s'\n", dev); #endif } else /* the sscanf failed, check for an ORDER line */ { d = strtok (line, " \t\n\r"); if (strcmp (d, "ORDER") == 0) { while ((d = strtok (NULL, " \t\n\r")) != NULL) { for (i = 0; i < mixer_devices; i++) if (strcmp (d, mixer_names[i]) == 0) break; if (i < mixer_devices && mixer_isdevice (mixer, i)) { mixer_order[mixer_max++] = i; #ifdef DEBUG fprintf (stderr, "wmrack: mixer_order %d=%s\n", mixer_max, mixer_names[i]); #endif } #ifdef DEBUG else fprintf (stderr, "wmrack: unsupported device '%s'\n", d); #endif } } #if DEBUG else fprintf (stderr, "wmrack: invalid setting '%s'\n", line); #endif } } lib_free (mixer_lib); endload: if (mixer_max == 0) { #ifdef DEBUG fprintf (stderr, "wmrack: setting default mixer_order\n"); #endif for (j = i = 0; i < mixer_devices; i++) if (mixer_isdevice (mixer, i)) mixer_order[j++] = i; mixer_max = j; } mixer_readvols (mixer); return err; } /* * saveMixerRC() * * writes the mixer defaults */ int saveMixerRC () { int i; mixer_lib = lib_open ("mixer", LIB_WRITE); if (mixer_lib == NULL) { fprintf (stderr, "wmrack: can't write mixer file\n"); return -1; } for (i = 0; i < mixer_devices; i++) { if (mixer_isdevice (mixer, i)) { if (mixer_isstereo (mixer, i)) lib_printf (mixer_lib, "%s %d:%d%s\n", mixer_names[i], mixer_volleft (mixer, i), mixer_volright (mixer, i), mixer_isrecsrc (mixer, i) ? " src" : ""); else lib_printf (mixer_lib, "%s %d:%d%s\n", mixer_names[i], mixer_volmono (mixer, i), mixer_volmono (mixer, i), mixer_isrecsrc (mixer, i) ? " src" : ""); } } if (mixer_max > 0) { lib_printf (mixer_lib, "ORDER"); for (i = 0; i < mixer_max; i++) { lib_printf (mixer_lib, " %s", mixer_names[mixer_order[i]]); } lib_printf (mixer_lib, "\n"); } lib_close (mixer_lib); return 0; } void rack_popup (char *msg) { if (popup_display != NULL) free (popup_display); popup_display = strdup (msg); popup_done = 0; } wmrack-1.4/xpmicon.c0000644000175000017500000001650407242061403013541 0ustar xtifrxtifr/* * $Id: xpmicon.c,v 1.1.1.1 2001/02/12 22:26:11 xtifr Exp $ * * part of WMRack * * handles the whole pixmap stuff (styles) * * Copyright (c) 1997 by Oliver Graf */ #include #include #include #include #include #include #include "library.h" #include "xpmicon.h" /* include the default xpms */ #include "XPM/standart.style" /* * first some requires variables */ XpmAttributes rackDefaultAttr; XpmIcon rackXpm[]={{"cdnodisc",cdnodisc}, {"cdstopped",cdstopped}, {"cdplaying",cdplaying}, {"cdpaused",cdpaused}, {"mixer",mixer}, {"cdled",cdled}, {"mixled",mixled}, {"alphaled",alphaled}}; int curRack=RACK_NODISC; XpmColorSymbol LedColorSymbols[4]={{"led_color_back", "#000000000000", 0}, {"led_color_high", "#0000FFFF0000", 0}, {"led_color_med", "#00009CE60000", 0}, {"led_color_low", "#000063180000", 0}}; char *ledAlphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 "; /* * some internal functions */ /****************************************************************************/ Pixel xpm_getDimColor(Display *disp, Drawable draw, char *ColorName, float dim) { XColor Color; XWindowAttributes Attributes; XGetWindowAttributes(disp,draw,&Attributes); Color.pixel = 0; if (!XParseColor (disp, Attributes.colormap, ColorName, &Color)) fprintf(stderr,"xpm_getDimColor: can't parse %s\n", ColorName); else { Color.red/=dim; Color.green/=dim; Color.blue/=dim; Color.flags=DoRed|DoGreen|DoBlue; if (!XAllocColor (disp, Attributes.colormap, &Color)) fprintf(stderr,"xpm_getDimColor: can't allocate %s\n", ColorName); } return Color.pixel; } int parseXpm(Display *disp, Drawable draw, char *buffer) { int i, len; char *d1, *d2; /* check header */ if (strncmp(buffer,"/* XPM */\nstatic char *",23)!=0) { fprintf(stderr,"parseXpm: invalid start of xpm\n"); fprintf(stderr,buffer); return 1; } /* skip spaces */ for (d1=buffer+23; *d1==32; d1++); /* find end */ d2=strchr(d1,'['); if (d2==NULL) { fprintf(stderr,"parseXpm: can't parse xpm-name\n"); return 1; } for (; *(d2-1)==32; d2--); len=d2-d1; #ifdef DEBUG { char name[200]; strncpy(name,d1,len); name[len]=0; fprintf(stderr,"parseXpm: found XPM %s\n",name); } #endif /* find the right place */ for (i=0; i=bufalloc) { char *newbuf; newbuf=(char *)realloc(buffer,bufalloc+4096); if (newbuf==NULL) { fprintf(stderr,"xpm_loadSet: can' alloc enough mem\n"); fclose(f); return 1; } buffer=newbuf; bufalloc+=4096; } strcpy(buffer+bufpos,line); bufpos+=strlen(line); } } fclose(f); if (buffer!=NULL) { if (parseXpm(disp,draw,buffer)) { free(buffer); return 1; } free(buffer); } /* check if all xpms are loaded */ for (i=0; i */ #ifndef WMRACK_XPMICON_H_ #define WMRACK_XPMICON_H_ /* Xpm struct */ typedef struct { char *name; char **standart; int loaded; XpmAttributes attributes; Pixmap pixmap; Pixmap mask; } XpmIcon; /* the XpmIcon definitions and variables */ #define RACK_NODISC 0 #define RACK_STOP 1 #define RACK_PLAY 2 #define RACK_PAUSE 3 #define RACK_MIXER 4 #define RACK_LED_PLAYER 5 #define RACK_LED_MIXER 6 #define RACK_LED_ALPHA 7 #define RACK_MAX 8 extern XpmIcon rackXpm[]; extern int curRack; extern char *ledAlphabet; int xpm_setDefaultAttr(Display *disp, Drawable draw, char *color, char *back); int xpm_loadSet(Display *disp, Drawable draw, char *filename); int xpm_setDefaultSet(Display *disp, Drawable draw, int num); void xpm_freeSet(Display *disp); #endif /* WMRACK_XPMICON_H_ */ wmrack-1.4/xpmsize.h0000644000175000017500000000653307736717626013620 0ustar xtifrxtifr/* * $Id: xpmsize.h,v 1.2 2003/10/02 03:46:30 xtifr Exp $ * * defines to match xpm details -- must be edited if xpms change. * * copyright (c) Chris Waters 2001, 2003 */ #ifndef WMRACK_XPMSIZE_H_ #define WMRACK_XPMSIZE_H_ /* * Special switch widget * (This should be the same on all views) */ #define RACK_SWITCH_TOP 17 #define RACK_SWITCH_BOTTOM 29 #define RACK_SWITCH_LEFT 17 #define RACK_SWITCH_RIGHT 30 #define IN_RACK_SWITCH_BUTTON(ev) ((ev).xbutton.x >= RACK_SWITCH_LEFT \ && (ev).xbutton.x <= RACK_SWITCH_RIGHT \ && (ev).xbutton.y >= RACK_SWITCH_TOP \ && (ev).xbutton.y <= RACK_SWITCH_BOTTOM) /* * CD Widgets */ /* time display */ #define CD_TIME_WIDGET_BOTTOM 14 /* top and sides are max */ #define IN_CD_TIME_WIDGET(ev) ((ev).xbutton.y <= CD_TIME_WIDGET_BOTTOM) /* play/stop buttons */ #define CD_PLAY_BUTTON_TOP 17 #define CD_PLAY_BUTTON_BOTTOM 29 #define CD_PLAY_BUTTON_LEFT 0 #define CD_PLAY_BUTTON_RIGHT 12 #define CD_STOP_BUTTON_TOP CD_PLAY_BUTTON_TOP #define CD_STOP_BUTTON_BOTTOM CD_PLAY_BUTTON_BOTTOM #define CD_STOP_BUTTON_LEFT 35 #define CD_STOP_BUTTON_RIGHT 47 #define IN_CD_PLAY_BUTTON(ev) ((ev).xbutton.x <= CD_PLAY_BUTTON_RIGHT \ && (ev).xbutton.y >= CD_PLAY_BUTTON_TOP \ && (ev).xbutton.y <= CD_PLAY_BUTTON_BOTTOM) #define IN_CD_STOP_BUTTON(ev) ((ev).xbutton.x >= CD_STOP_BUTTON_LEFT \ && (ev).xbutton.y >= CD_STOP_BUTTON_TOP \ && (ev).xbutton.y <= CD_STOP_BUTTON_BOTTOM) /* next/prev buttons */ #define CD_PREV_BUTTON_TOP 34 #define CD_PREV_BUTTON_BOTTOM 47 #define CD_PREV_BUTTON_LEFT 0 #define CD_PREV_BUTTON_RIGHT 12 #define CD_NEXT_BUTTON_TOP CD_PREV_BUTTON_TOP #define CD_NEXT_BUTTON_BOTTOM CD_PREV_BUTTON_BOTTOM #define CD_NEXT_BUTTON_LEFT 35 #define CD_NEXT_BUTTON_RIGHT 47 #define IN_CD_PREV_BUTTON(ev) ((ev).xbutton.x <= CD_PREV_BUTTON_RIGHT \ && (ev).xbutton.y >= CD_PREV_BUTTON_TOP) #define IN_CD_NEXT_BUTTON(ev) ((ev).xbutton.x >= CD_NEXT_BUTTON_LEFT \ && (ev).xbutton.y >= CD_NEXT_BUTTON_TOP) /* track display widget */ #define CD_TRACK_WIDGET_TOP 33 #define CD_TRACK_WIDGET_BOTTOM 47 #define CD_TRACK_WIDGET_LEFT 14 #define CD_TRACK_WIDGET_RIGHT 33 #define IN_CD_TRACK_WIDGET(ev) ((ev).xbutton.x >= CD_TRACK_WIDGET_LEFT \ && (ev).xbutton.x <= CD_TRACK_WIDGET_RIGHT \ && (ev).xbutton.y >= CD_TRACK_WIDGET_TOP) /* * Mixer widgets */ /* volume sliders */ #define MX_LEFT_SLIDER_EDGE 10 #define MX_RIGHT_SLIDER_EDGE 37 #define IN_MX_LEFT_SLIDER(ev) ((ev).xbutton.x <= MX_LEFT_SLIDER_EDGE) #define IN_MX_RIGHT_SLIDER(ev) ((ev).xbutton.x >= MX_RIGHT_SLIDER_EDGE) #define IN_MX_SLIDER(ev) (IN_MX_LEFT_SLIDER(ev) || IN_MX_RIGHT_SLIDER(ev)) /* channel selector */ #define MX_CHAN_WIDGET_BOTTOM 14 #define MX_CHAN_WIDGET_LEFT 14 #define MX_CHAN_WIDGET_RIGHT 33 #define IN_MX_CHAN_WIDGET(ev) ((ev).xbutton.x >= MX_CHAN_WIDGET_LEFT \ && (ev).xbutton.x <= MX_CHAN_WIDGET_RIGHT \ && (ev).xbutton.y <= MX_CHAN_WIDGET_BOTTOM) /* mute button */ #define MX_MUTE_BUTTON_TOP 34 #define MX_MUTE_BUTTON_LEFT 17 #define MX_MUTE_BUTTON_RIGHT 30 #define IN_MX_MUTE_BUTTON(ev) ((ev).xbutton.x >= MX_MUTE_BUTTON_LEFT \ && (ev).xbutton.x <= MX_MUTE_BUTTON_RIGHT \ && (ev).xbutton.y >= MX_MUTE_BUTTON_TOP) /* calculate volume from mouse coordinate */ #define CLICK_VOLUME(ev) (((47 - (ev).xbutton.y) / 4) * 10) #endif /* WMRACK_XPMSIZE_H_ */ wmrack-1.4/autom4te.cache/0002755000175000017500000000000010722410336014520 5ustar xtifrxtifrwmrack-1.4/autom4te.cache/requests0000644000175000017500000000514510722410336016321 0ustar xtifrxtifr# This file was generated by Autom4te Wed Jan 17 19:57:31 PST 2007. # It contains the lists of macros which have been traced. # It can be safely removed. @request = ( bless( [ '0', 1, [ '/usr/share/autoconf' ], [ '/usr/share/autoconf/autoconf/autoconf.m4f', 'configure.in' ], { '_LT_AC_TAGCONFIG' => 1, 'AM_PROG_F77_C_O' => 1, 'AC_INIT' => 1, 'm4_pattern_forbid' => 1, 'AC_CANONICAL_TARGET' => 1, 'AC_SUBST' => 1, 'AC_CONFIG_LIBOBJ_DIR' => 1, 'AC_FC_SRCEXT' => 1, 'AC_CANONICAL_HOST' => 1, 'AC_PROG_LIBTOOL' => 1, 'AM_INIT_AUTOMAKE' => 1, 'AC_CONFIG_SUBDIRS' => 1, 'AM_AUTOMAKE_VERSION' => 1, 'LT_CONFIG_LTDL_DIR' => 1, 'AC_REQUIRE_AUX_FILE' => 1, 'AC_CONFIG_LINKS' => 1, 'm4_sinclude' => 1, 'LT_SUPPORTED_TAG' => 1, 'AM_MAINTAINER_MODE' => 1, 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, '_m4_warn' => 1, 'AM_PROG_CXX_C_O' => 1, 'AM_ENABLE_MULTILIB' => 1, 'AC_CONFIG_FILES' => 1, 'include' => 1, 'LT_INIT' => 1, 'AM_GNU_GETTEXT' => 1, 'AC_LIBSOURCE' => 1, 'AM_PROG_FC_C_O' => 1, 'AC_CANONICAL_BUILD' => 1, 'AC_FC_FREEFORM' => 1, 'AH_OUTPUT' => 1, '_AM_SUBST_NOTMAKE' => 1, 'AC_CONFIG_AUX_DIR' => 1, 'sinclude' => 1, 'm4_pattern_allow' => 1, 'AM_PROG_CC_C_O' => 1, 'AC_CANONICAL_SYSTEM' => 1, 'AM_CONDITIONAL' => 1, 'AC_CONFIG_HEADERS' => 1, 'AC_DEFINE_TRACE_LITERAL' => 1, 'm4_include' => 1, 'AC_SUBST_TRACE' => 1 } ], 'Autom4te::Request' ) ); wmrack-1.4/autom4te.cache/output.00000644000175000017500000044006010722410336016143 0ustar xtifrxtifr@%:@! /bin/sh @%:@ Guess values for system-dependent variables and create Makefiles. @%:@ Generated by GNU Autoconf 2.61. @%:@ @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. @%:@ This configure script is free software; the Free Software Foundation @%:@ gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIB@&t@OBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="wmrack.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S INSTALL CPP GREP EGREP XMKMF LIB@&t@OBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP XMKMF' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@ --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-debug Compile with extra debug messages. \ --without-gnustep Don't use GNUstep style library paths. --with-x use the X Window System Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor XMKMF Path to xmkmf, Makefile generator for X Window System Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME @%:@@%:@ --------- @%:@@%:@ @%:@@%:@ Platform. @%:@@%:@ @%:@@%:@ --------- @%:@@%:@ hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF @%:@@%:@ ----------- @%:@@%:@ @%:@@%:@ Core tests. @%:@@%:@ @%:@@%:@ ----------- @%:@@%:@ _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX @%:@@%:@ ---------------- @%:@@%:@ @%:@@%:@ Cache variables. @%:@@%:@ @%:@@%:@ ---------------- @%:@@%:@ _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX @%:@@%:@ ----------------- @%:@@%:@ @%:@@%:@ Output variables. @%:@@%:@ @%:@@%:@ ----------------- @%:@@%:@ _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX @%:@@%:@ ------------------- @%:@@%:@ @%:@@%:@ File substitutions. @%:@@%:@ @%:@@%:@ ------------------- @%:@@%:@ _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX @%:@@%:@ ----------- @%:@@%:@ @%:@@%:@ confdefs.h. @%:@@%:@ @%:@@%:@ ----------- @%:@@%:@ _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" # Check whether --with-debug was given. if test "${with_debug+set}" = set; then withval=$with_debug; fi # Check whether --with-gnustep was given. if test "${with_gnustep+set}" = set; then withval=$with_gnustep; fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $@%:@ != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@ifdef __STDC__ @%:@ include @%:@else @%:@ include @%:@endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@ifdef __STDC__ @%:@ include @%:@else @%:@ include @%:@endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF @%:@define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default @%:@include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "${ac_cv_header_unistd_h+set}" = set; then { echo "$as_me:$LINENO: checking for unistd.h" >&5 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } if test "${ac_cv_header_unistd_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking unistd.h usability" >&5 echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default @%:@include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking unistd.h presence" >&5 echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for unistd.h" >&5 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } if test "${ac_cv_header_unistd_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_unistd_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } fi { echo "$as_me:$LINENO: checking for X" >&5 echo $ECHO_N "checking for X... $ECHO_C" >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 echo "$as_me: error: Cannot use X directory names containing '" >&2;} { (exit 1); exit 1; }; };; #( *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /lib) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # We can compile using X headers with no special include directory. ac_x_includes= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include int main () { XrmInitialize () ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS=$ac_save_LIBS for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { echo "$as_me:$LINENO: result: $have_x" >&5 echo "${ECHO_T}$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } fi if test "x$no_x" = "xyes"; then { { echo "$as_me:$LINENO: error: WMRack needs X Windows!!!" >&5 echo "$as_me: error: WMRack needs X Windows!!!" >&2;} { (exit 1); exit 1; }; } else CFLAGS="$CFLAGS ${x_includes:+-I$x_includes}" LIBS="$LIBS ${x_libraries:+-L$x_libraries} -lX11" CPPFLAGS="$CPPFLAGS ${x_includes:+-I$x_includes}" fi { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromBuffer in -lXpm" >&5 echo $ECHO_N "checking for XpmCreatePixmapFromBuffer in -lXpm... $ECHO_C" >&6; } if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXpm \ -lX11 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XpmCreatePixmapFromBuffer (); int main () { return XpmCreatePixmapFromBuffer (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer" >&5 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer" >&6; } if test $ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer = yes; then \ LIBS="$LIBS -lXpm" else \ { { echo "$as_me:$LINENO: error: WMRack needs XPM support!!!" >&5 echo "$as_me: error: WMRack needs XPM support!!!" >&2;} { (exit 1); exit 1; }; } fi if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; } if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_shape_h" >&5 echo "${ECHO_T}$ac_cv_header_X11_extensions_shape_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking X11/extensions/shape.h usability" >&5 echo $ECHO_N "checking X11/extensions/shape.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default @%:@include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking X11/extensions/shape.h presence" >&5 echo $ECHO_N "checking X11/extensions/shape.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @%:@include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; } if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_X11_extensions_shape_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_shape_h" >&5 echo "${ECHO_T}$ac_cv_header_X11_extensions_shape_h" >&6; } fi if test $ac_cv_header_X11_extensions_shape_h = yes; then : else \ { { echo "$as_me:$LINENO: error: WMRack needs X11 Shape extensions!!!" >&5 echo "$as_me: error: WMRack needs X11 Shape extensions!!!" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6; } if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXext \ -lX11 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XShapeCombineMask (); int main () { return XShapeCombineMask (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_Xext_XShapeCombineMask=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_Xext_XShapeCombineMask=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6; } if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then \ LIBS="$LIBS -lXext" else \ { { echo "$as_me:$LINENO: error: WMRack needs the X11 extension library!!!" >&5 echo "$as_me: error: WMRack needs the X11 extension library!!!" >&2;} { (exit 1); exit 1; }; } fi echo if test "x${with_debug}" = "xyes"; then echo "adding extra DEBUG output" CFLAGS="-ggdb -DDEBUG $CFLAGS" fi if test "x${with_gnustep}" = "xno"; then echo "GNUstep path standarts disabled" else echo -n "Trying to detect GNUstep paths..." if test -d "$prefix/GNUstep" -o -d "$ac_default_prefix/GNUstep"; then libdir=\${prefix}/GNUstep/Library echo " $libdir" cat >>confdefs.h <<\_ACEOF @%:@define HAVE_GNUSTEP 1 _ACEOF else echo " NOT FOUND -- DISABLED" fi fi echo ac_config_files="$ac_config_files Makefile XPM/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIB@&t@OBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX @%:@@%:@ Running $as_me. @%:@@%:@ _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "XPM/Makefile") CONFIG_FILES="$CONFIG_FILES XPM/Makefile" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim LN_S!$LN_S$ac_delim INSTALL!$INSTALL$ac_delim CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim XMKMF!$XMKMF$ac_delim LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi wmrack-1.4/autom4te.cache/traces.00000644000175000017500000003702210722410336016064 0ustar xtifrxtifrm4trace:configure.in:7: -1- AC_INIT([wmrack.c]) m4trace:configure.in:7: -1- m4_pattern_forbid([^_?A[CHUM]_]) m4trace:configure.in:7: -1- m4_pattern_forbid([_AC_]) m4trace:configure.in:7: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) m4trace:configure.in:7: -1- m4_pattern_allow([^AS_FLAGS$]) m4trace:configure.in:7: -1- m4_pattern_forbid([^_?m4_]) m4trace:configure.in:7: -1- m4_pattern_forbid([^dnl$]) m4trace:configure.in:7: -1- m4_pattern_forbid([^_?AS_]) m4trace:configure.in:7: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([SHELL]) m4trace:configure.in:7: -1- m4_pattern_allow([^SHELL$]) m4trace:configure.in:7: -1- AC_SUBST([PATH_SEPARATOR]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) m4trace:configure.in:7: -1- m4_pattern_allow([^PATH_SEPARATOR$]) m4trace:configure.in:7: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([PACKAGE_NAME]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_NAME$]) m4trace:configure.in:7: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) m4trace:configure.in:7: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_VERSION$]) m4trace:configure.in:7: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([PACKAGE_STRING]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_STRING$]) m4trace:configure.in:7: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) m4trace:configure.in:7: -1- AC_SUBST([exec_prefix], [NONE]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([exec_prefix]) m4trace:configure.in:7: -1- m4_pattern_allow([^exec_prefix$]) m4trace:configure.in:7: -1- AC_SUBST([prefix], [NONE]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([prefix]) m4trace:configure.in:7: -1- m4_pattern_allow([^prefix$]) m4trace:configure.in:7: -1- AC_SUBST([program_transform_name], [s,x,x,]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([program_transform_name]) m4trace:configure.in:7: -1- m4_pattern_allow([^program_transform_name$]) m4trace:configure.in:7: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([bindir]) m4trace:configure.in:7: -1- m4_pattern_allow([^bindir$]) m4trace:configure.in:7: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([sbindir]) m4trace:configure.in:7: -1- m4_pattern_allow([^sbindir$]) m4trace:configure.in:7: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([libexecdir]) m4trace:configure.in:7: -1- m4_pattern_allow([^libexecdir$]) m4trace:configure.in:7: -1- AC_SUBST([datarootdir], ['${prefix}/share']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([datarootdir]) m4trace:configure.in:7: -1- m4_pattern_allow([^datarootdir$]) m4trace:configure.in:7: -1- AC_SUBST([datadir], ['${datarootdir}']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([datadir]) m4trace:configure.in:7: -1- m4_pattern_allow([^datadir$]) m4trace:configure.in:7: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([sysconfdir]) m4trace:configure.in:7: -1- m4_pattern_allow([^sysconfdir$]) m4trace:configure.in:7: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([sharedstatedir]) m4trace:configure.in:7: -1- m4_pattern_allow([^sharedstatedir$]) m4trace:configure.in:7: -1- AC_SUBST([localstatedir], ['${prefix}/var']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([localstatedir]) m4trace:configure.in:7: -1- m4_pattern_allow([^localstatedir$]) m4trace:configure.in:7: -1- AC_SUBST([includedir], ['${prefix}/include']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([includedir]) m4trace:configure.in:7: -1- m4_pattern_allow([^includedir$]) m4trace:configure.in:7: -1- AC_SUBST([oldincludedir], ['/usr/include']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([oldincludedir]) m4trace:configure.in:7: -1- m4_pattern_allow([^oldincludedir$]) m4trace:configure.in:7: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], ['${datarootdir}/doc/${PACKAGE_TARNAME}'], ['${datarootdir}/doc/${PACKAGE}'])]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([docdir]) m4trace:configure.in:7: -1- m4_pattern_allow([^docdir$]) m4trace:configure.in:7: -1- AC_SUBST([infodir], ['${datarootdir}/info']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([infodir]) m4trace:configure.in:7: -1- m4_pattern_allow([^infodir$]) m4trace:configure.in:7: -1- AC_SUBST([htmldir], ['${docdir}']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([htmldir]) m4trace:configure.in:7: -1- m4_pattern_allow([^htmldir$]) m4trace:configure.in:7: -1- AC_SUBST([dvidir], ['${docdir}']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([dvidir]) m4trace:configure.in:7: -1- m4_pattern_allow([^dvidir$]) m4trace:configure.in:7: -1- AC_SUBST([pdfdir], ['${docdir}']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([pdfdir]) m4trace:configure.in:7: -1- m4_pattern_allow([^pdfdir$]) m4trace:configure.in:7: -1- AC_SUBST([psdir], ['${docdir}']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([psdir]) m4trace:configure.in:7: -1- m4_pattern_allow([^psdir$]) m4trace:configure.in:7: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([libdir]) m4trace:configure.in:7: -1- m4_pattern_allow([^libdir$]) m4trace:configure.in:7: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([localedir]) m4trace:configure.in:7: -1- m4_pattern_allow([^localedir$]) m4trace:configure.in:7: -1- AC_SUBST([mandir], ['${datarootdir}/man']) m4trace:configure.in:7: -1- AC_SUBST_TRACE([mandir]) m4trace:configure.in:7: -1- m4_pattern_allow([^mandir$]) m4trace:configure.in:7: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_NAME$]) m4trace:configure.in:7: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ #undef PACKAGE_NAME]) m4trace:configure.in:7: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) m4trace:configure.in:7: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME]) m4trace:configure.in:7: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_VERSION$]) m4trace:configure.in:7: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ #undef PACKAGE_VERSION]) m4trace:configure.in:7: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_STRING$]) m4trace:configure.in:7: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ #undef PACKAGE_STRING]) m4trace:configure.in:7: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) m4trace:configure.in:7: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) m4trace:configure.in:7: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT]) m4trace:configure.in:7: -1- AC_SUBST([DEFS]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([DEFS]) m4trace:configure.in:7: -1- m4_pattern_allow([^DEFS$]) m4trace:configure.in:7: -1- AC_SUBST([ECHO_C]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([ECHO_C]) m4trace:configure.in:7: -1- m4_pattern_allow([^ECHO_C$]) m4trace:configure.in:7: -1- AC_SUBST([ECHO_N]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([ECHO_N]) m4trace:configure.in:7: -1- m4_pattern_allow([^ECHO_N$]) m4trace:configure.in:7: -1- AC_SUBST([ECHO_T]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([ECHO_T]) m4trace:configure.in:7: -1- m4_pattern_allow([^ECHO_T$]) m4trace:configure.in:7: -1- AC_SUBST([LIBS]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([LIBS]) m4trace:configure.in:7: -1- m4_pattern_allow([^LIBS$]) m4trace:configure.in:7: -1- AC_SUBST([build_alias]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([build_alias]) m4trace:configure.in:7: -1- m4_pattern_allow([^build_alias$]) m4trace:configure.in:7: -1- AC_SUBST([host_alias]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([host_alias]) m4trace:configure.in:7: -1- m4_pattern_allow([^host_alias$]) m4trace:configure.in:7: -1- AC_SUBST([target_alias]) m4trace:configure.in:7: -1- AC_SUBST_TRACE([target_alias]) m4trace:configure.in:7: -1- m4_pattern_allow([^target_alias$]) m4trace:configure.in:8: -1- AC_CONFIG_HEADERS([config.h]) m4trace:configure.in:20: -1- AC_SUBST([CC]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([CC]) m4trace:configure.in:20: -1- m4_pattern_allow([^CC$]) m4trace:configure.in:20: -1- AC_SUBST([CFLAGS]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([CFLAGS]) m4trace:configure.in:20: -1- m4_pattern_allow([^CFLAGS$]) m4trace:configure.in:20: -1- AC_SUBST([LDFLAGS]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([LDFLAGS]) m4trace:configure.in:20: -1- m4_pattern_allow([^LDFLAGS$]) m4trace:configure.in:20: -1- AC_SUBST([LIBS]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([LIBS]) m4trace:configure.in:20: -1- m4_pattern_allow([^LIBS$]) m4trace:configure.in:20: -1- AC_SUBST([CPPFLAGS]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([CPPFLAGS]) m4trace:configure.in:20: -1- m4_pattern_allow([^CPPFLAGS$]) m4trace:configure.in:20: -1- AC_SUBST([CC]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([CC]) m4trace:configure.in:20: -1- m4_pattern_allow([^CC$]) m4trace:configure.in:20: -1- AC_SUBST([CC]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([CC]) m4trace:configure.in:20: -1- m4_pattern_allow([^CC$]) m4trace:configure.in:20: -1- AC_SUBST([CC]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([CC]) m4trace:configure.in:20: -1- m4_pattern_allow([^CC$]) m4trace:configure.in:20: -1- AC_SUBST([CC]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([CC]) m4trace:configure.in:20: -1- m4_pattern_allow([^CC$]) m4trace:configure.in:20: -1- AC_SUBST([ac_ct_CC]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([ac_ct_CC]) m4trace:configure.in:20: -1- m4_pattern_allow([^ac_ct_CC$]) m4trace:configure.in:20: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([EXEEXT]) m4trace:configure.in:20: -1- m4_pattern_allow([^EXEEXT$]) m4trace:configure.in:20: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) m4trace:configure.in:20: -1- AC_SUBST_TRACE([OBJEXT]) m4trace:configure.in:20: -1- m4_pattern_allow([^OBJEXT$]) m4trace:configure.in:21: -1- AC_REQUIRE_AUX_FILE([install-sh]) m4trace:configure.in:21: -1- AC_SUBST([INSTALL_PROGRAM]) m4trace:configure.in:21: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) m4trace:configure.in:21: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) m4trace:configure.in:21: -1- AC_SUBST([INSTALL_SCRIPT]) m4trace:configure.in:21: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) m4trace:configure.in:21: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) m4trace:configure.in:21: -1- AC_SUBST([INSTALL_DATA]) m4trace:configure.in:21: -1- AC_SUBST_TRACE([INSTALL_DATA]) m4trace:configure.in:21: -1- m4_pattern_allow([^INSTALL_DATA$]) m4trace:configure.in:22: -1- AC_SUBST([LN_S], [$as_ln_s]) m4trace:configure.in:22: -1- AC_SUBST_TRACE([LN_S]) m4trace:configure.in:22: -1- m4_pattern_allow([^LN_S$]) m4trace:configure.in:24: -1- AC_SUBST([INSTALL]) m4trace:configure.in:24: -1- AC_SUBST_TRACE([INSTALL]) m4trace:configure.in:24: -1- m4_pattern_allow([^INSTALL$]) m4trace:configure.in:28: -1- AC_SUBST([CPP]) m4trace:configure.in:28: -1- AC_SUBST_TRACE([CPP]) m4trace:configure.in:28: -1- m4_pattern_allow([^CPP$]) m4trace:configure.in:28: -1- AC_SUBST([CPPFLAGS]) m4trace:configure.in:28: -1- AC_SUBST_TRACE([CPPFLAGS]) m4trace:configure.in:28: -1- m4_pattern_allow([^CPPFLAGS$]) m4trace:configure.in:28: -1- AC_SUBST([CPP]) m4trace:configure.in:28: -1- AC_SUBST_TRACE([CPP]) m4trace:configure.in:28: -1- m4_pattern_allow([^CPP$]) m4trace:configure.in:28: -1- AC_SUBST([GREP]) m4trace:configure.in:28: -1- AC_SUBST_TRACE([GREP]) m4trace:configure.in:28: -1- m4_pattern_allow([^GREP$]) m4trace:configure.in:28: -1- AC_SUBST([GREP]) m4trace:configure.in:28: -1- AC_SUBST_TRACE([GREP]) m4trace:configure.in:28: -1- m4_pattern_allow([^GREP$]) m4trace:configure.in:28: -1- AC_SUBST([EGREP]) m4trace:configure.in:28: -1- AC_SUBST_TRACE([EGREP]) m4trace:configure.in:28: -1- m4_pattern_allow([^EGREP$]) m4trace:configure.in:28: -1- AC_SUBST([EGREP]) m4trace:configure.in:28: -1- AC_SUBST_TRACE([EGREP]) m4trace:configure.in:28: -1- m4_pattern_allow([^EGREP$]) m4trace:configure.in:28: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) m4trace:configure.in:28: -1- m4_pattern_allow([^STDC_HEADERS$]) m4trace:configure.in:28: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS]) m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H]) m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H]) m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H]) m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ #undef HAVE_STRING_H]) m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H]) m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H]) m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H]) m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H]) m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H]) m4trace:configure.in:53: -1- AC_SUBST([XMKMF]) m4trace:configure.in:53: -1- AC_SUBST_TRACE([XMKMF]) m4trace:configure.in:53: -1- m4_pattern_allow([^XMKMF$]) m4trace:configure.in:96: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GNUSTEP]) m4trace:configure.in:96: -1- m4_pattern_allow([^HAVE_GNUSTEP$]) m4trace:configure.in:107: -1- AC_CONFIG_FILES([Makefile XPM/Makefile]) m4trace:configure.in:107: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments. You should run autoupdate.], []) m4trace:configure.in:107: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) m4trace:configure.in:107: -1- m4_pattern_allow([^LIB@&t@OBJS$]) m4trace:configure.in:107: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([LTLIBOBJS]) m4trace:configure.in:107: -1- m4_pattern_allow([^LTLIBOBJS$]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([top_builddir]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([srcdir]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([abs_srcdir]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([top_srcdir]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([abs_top_srcdir]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([builddir]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([abs_builddir]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([abs_top_builddir]) m4trace:configure.in:107: -1- AC_SUBST_TRACE([INSTALL]) wmrack-1.4/configure0000755000175000017500000043722410722410336013635 0ustar xtifrxtifr#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="wmrack.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S INSTALL CPP GREP EGREP XMKMF LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP XMKMF' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-debug Compile with extra debug messages. \ --without-gnustep Don't use GNUstep style library paths. --with-x use the X Window System Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor XMKMF Path to xmkmf, Makefile generator for X Window System Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" # Check whether --with-debug was given. if test "${with_debug+set}" = set; then withval=$with_debug; fi # Check whether --with-gnustep was given. if test "${with_gnustep+set}" = set; then withval=$with_gnustep; fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "${ac_cv_header_unistd_h+set}" = set; then { echo "$as_me:$LINENO: checking for unistd.h" >&5 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } if test "${ac_cv_header_unistd_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking unistd.h usability" >&5 echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking unistd.h presence" >&5 echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for unistd.h" >&5 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } if test "${ac_cv_header_unistd_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_unistd_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } fi { echo "$as_me:$LINENO: checking for X" >&5 echo $ECHO_N "checking for X... $ECHO_C" >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 echo "$as_me: error: Cannot use X directory names containing '" >&2;} { (exit 1); exit 1; }; };; #( *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /lib) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # We can compile using X headers with no special include directory. ac_x_includes= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS=$ac_save_LIBS for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { echo "$as_me:$LINENO: result: $have_x" >&5 echo "${ECHO_T}$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } fi if test "x$no_x" = "xyes"; then { { echo "$as_me:$LINENO: error: WMRack needs X Windows!!!" >&5 echo "$as_me: error: WMRack needs X Windows!!!" >&2;} { (exit 1); exit 1; }; } else CFLAGS="$CFLAGS ${x_includes:+-I$x_includes}" LIBS="$LIBS ${x_libraries:+-L$x_libraries} -lX11" CPPFLAGS="$CPPFLAGS ${x_includes:+-I$x_includes}" fi { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromBuffer in -lXpm" >&5 echo $ECHO_N "checking for XpmCreatePixmapFromBuffer in -lXpm... $ECHO_C" >&6; } if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXpm \ -lX11 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XpmCreatePixmapFromBuffer (); int main () { return XpmCreatePixmapFromBuffer (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer" >&5 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer" >&6; } if test $ac_cv_lib_Xpm_XpmCreatePixmapFromBuffer = yes; then \ LIBS="$LIBS -lXpm" else \ { { echo "$as_me:$LINENO: error: WMRack needs XPM support!!!" >&5 echo "$as_me: error: WMRack needs XPM support!!!" >&2;} { (exit 1); exit 1; }; } fi if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; } if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_shape_h" >&5 echo "${ECHO_T}$ac_cv_header_X11_extensions_shape_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking X11/extensions/shape.h usability" >&5 echo $ECHO_N "checking X11/extensions/shape.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking X11/extensions/shape.h presence" >&5 echo $ECHO_N "checking X11/extensions/shape.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: X11/extensions/shape.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: X11/extensions/shape.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; } if test "${ac_cv_header_X11_extensions_shape_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_X11_extensions_shape_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_shape_h" >&5 echo "${ECHO_T}$ac_cv_header_X11_extensions_shape_h" >&6; } fi if test $ac_cv_header_X11_extensions_shape_h = yes; then : else \ { { echo "$as_me:$LINENO: error: WMRack needs X11 Shape extensions!!!" >&5 echo "$as_me: error: WMRack needs X11 Shape extensions!!!" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6; } if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXext \ -lX11 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XShapeCombineMask (); int main () { return XShapeCombineMask (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_Xext_XShapeCombineMask=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_Xext_XShapeCombineMask=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6; } if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then \ LIBS="$LIBS -lXext" else \ { { echo "$as_me:$LINENO: error: WMRack needs the X11 extension library!!!" >&5 echo "$as_me: error: WMRack needs the X11 extension library!!!" >&2;} { (exit 1); exit 1; }; } fi echo if test "x${with_debug}" = "xyes"; then echo "adding extra DEBUG output" CFLAGS="-ggdb -DDEBUG $CFLAGS" fi if test "x${with_gnustep}" = "xno"; then echo "GNUstep path standarts disabled" else echo -n "Trying to detect GNUstep paths..." if test -d "$prefix/GNUstep" -o -d "$ac_default_prefix/GNUstep"; then libdir=\${prefix}/GNUstep/Library echo " $libdir" cat >>confdefs.h <<\_ACEOF #define HAVE_GNUSTEP 1 _ACEOF else echo " NOT FOUND -- DISABLED" fi fi echo ac_config_files="$ac_config_files Makefile XPM/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "XPM/Makefile") CONFIG_FILES="$CONFIG_FILES XPM/Makefile" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim LN_S!$LN_S$ac_delim INSTALL!$INSTALL$ac_delim CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim XMKMF!$XMKMF$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi