You can use materials for your book storage unit that are attractive, strong, and of no interest to ants at all.
Glass book shelves in a tubular steel frame is available in a variety of styles. The style that you find most attractive might also be referred to as a glass display case. Different versions of ones are also referred to as a(n) glass etagére (French). A Web image search will reveal many.
This might work for you where products made from wood fibres, pegs, and glue won't since these materials are the favourite food of white ants (aka termites). You can't stop the ants with one of these; but, you'll be able to see any sight-seers creeping around your delicious books.
One of the most effective deterrents for these little guys, who are a relatives of the cockroach, is borax powder. Putting the feet of your bookcase in containers of borax will discourage scouts from climbing up to where your books are stored. Take precautions to avoid any contact with the walls or any other possible access.
Also keep in mind that if white ants (termites) nibble as far as your book collection, the frame of your house must look like Swiss cheese and might be structurally affected. The foundation in your home near damp areas is the first place where an attack of white ants begins. If you suspect damage from ants, it would be worth a small investment for an inspector to find out before major damage has been done.