#  Copyright (C) 2003 Ingo K"ohne
#  
#  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.

cmd=configure

optcomplete  $cmd help no-create quiet silent version
optcomplete -m arg_required  $cmd build host target
optcomplete -f  $cmd cache-file
optcomplete -d  $cmd prefix exec-prefix bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir srcdir x-includes x-libraries
optcomplete -m arg_required  $cmd program-prefix program-suffix
optcomplete -c  $cmd program-transform-name
optcomplete -C "sh ./configure --help | sed -n '/[[:space:]]*--\\(enable\\|disable\\|with\\|without\\)-/{;s/[[:space:]]*--\\([-_+a-zA-Z0-9]\\+\\).*/\\1/;/PACKAGE/d;/FEATURE/d;p;}' #"  $cmd EXTRAOPTS
optcomplete -m long  $cmd 




