Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.64. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
| 7 | # Foundation, Inc. |
| 8 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 30 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | |
| 33 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 58 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 79 | fi |
| 80 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 90 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 91 | *[\\/]* ) as_myself=$0 ;; |
| 92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 93 | for as_dir in $PATH |
| 94 | do |
| 95 | IFS=$as_save_IFS |
| 96 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 98 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 99 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 100 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 101 | ;; |
| 102 | esac |
| 103 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 104 | # in which case we are not to be found in the path. |
| 105 | if test "x$as_myself" = x; then |
| 106 | as_myself=$0 |
| 107 | fi |
| 108 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 110 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 111 | fi |
| 112 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 113 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 115 | # suppresses any "Segmentation fault" message there. '((' could |
| 116 | # trigger a bug in pdksh 5.2.14. |
| 117 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 118 | do eval test x\${$as_var+set} = xset \ |
| 119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 120 | done |
| 121 | PS1='$ ' |
| 122 | PS2='> ' |
| 123 | PS4='+ ' |
| 124 | |
| 125 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 126 | LC_ALL=C |
| 127 | export LC_ALL |
| 128 | LANGUAGE=C |
| 129 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 130 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 131 | # CDPATH. |
| 132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 133 | |
| 134 | if test "x$CONFIG_SHELL" = x; then |
| 135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 136 | emulate sh |
| 137 | NULLCMD=: |
| 138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 139 | # is contrary to our usage. Disable this feature. |
| 140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 141 | setopt NO_GLOB_SUBST |
| 142 | else |
| 143 | case \`(set -o) 2>/dev/null\` in #( |
| 144 | *posix*) : |
| 145 | set -o posix ;; #( |
| 146 | *) : |
| 147 | ;; |
| 148 | esac |
| 149 | fi |
| 150 | " |
| 151 | as_required="as_fn_return () { (exit \$1); } |
| 152 | as_fn_success () { as_fn_return 0; } |
| 153 | as_fn_failure () { as_fn_return 1; } |
| 154 | as_fn_ret_success () { return 0; } |
| 155 | as_fn_ret_failure () { return 1; } |
| 156 | |
| 157 | exitcode=0 |
| 158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 163 | |
| 164 | else |
| 165 | exitcode=1; echo positional parameters were not saved. |
| 166 | fi |
| 167 | test x\$exitcode = x0 || exit 1" |
| 168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 172 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 173 | if (eval "$as_required") 2>/dev/null; then : |
| 174 | as_have_required=yes |
| 175 | else |
| 176 | as_have_required=no |
| 177 | fi |
| 178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 179 | |
| 180 | else |
| 181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 182 | as_found=false |
| 183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 184 | do |
| 185 | IFS=$as_save_IFS |
| 186 | test -z "$as_dir" && as_dir=. |
| 187 | as_found=: |
| 188 | case $as_dir in #( |
| 189 | /*) |
| 190 | for as_base in sh bash ksh sh5; do |
| 191 | # Try only shells that exist, to save several forks. |
| 192 | as_shell=$as_dir/$as_base |
| 193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 195 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | break 2 |
| 198 | fi |
| 199 | fi |
| 200 | done;; |
| 201 | esac |
| 202 | as_found=false |
| 203 | done |
| 204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 206 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 207 | fi; } |
| 208 | IFS=$as_save_IFS |
| 209 | |
| 210 | |
| 211 | if test "x$CONFIG_SHELL" != x; then : |
| 212 | # We cannot yet assume a decent shell, so we have to provide a |
| 213 | # neutralization value for shells without unset; and this also |
| 214 | # works around shells that cannot unset nonexistent variables. |
| 215 | BASH_ENV=/dev/null |
| 216 | ENV=/dev/null |
| 217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 218 | export CONFIG_SHELL |
| 219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 220 | fi |
| 221 | |
| 222 | if test x$as_have_required = xno; then : |
| 223 | $as_echo "$0: This script requires a shell more modern than all" |
| 224 | $as_echo "$0: the shells that I found on your system." |
| 225 | if test x${ZSH_VERSION+set} = xset ; then |
| 226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 228 | else |
| 229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 230 | $0: including any error possibly output before this |
| 231 | $0: message. Then install a modern shell, or manually run |
| 232 | $0: the script under such a shell if you do have one." |
| 233 | fi |
| 234 | exit 1 |
| 235 | fi |
| 236 | fi |
| 237 | fi |
| 238 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 239 | export SHELL |
| 240 | # Unset more variables known to interfere with behavior of common tools. |
| 241 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 242 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 243 | |
| 244 | ## --------------------- ## |
| 245 | ## M4sh Shell Functions. ## |
| 246 | ## --------------------- ## |
| 247 | # as_fn_unset VAR |
| 248 | # --------------- |
| 249 | # Portably unset VAR. |
| 250 | as_fn_unset () |
| 251 | { |
| 252 | { eval $1=; unset $1;} |
| 253 | } |
| 254 | as_unset=as_fn_unset |
| 255 | |
| 256 | # as_fn_set_status STATUS |
| 257 | # ----------------------- |
| 258 | # Set $? to STATUS, without forking. |
| 259 | as_fn_set_status () |
| 260 | { |
| 261 | return $1 |
| 262 | } # as_fn_set_status |
| 263 | |
| 264 | # as_fn_exit STATUS |
| 265 | # ----------------- |
| 266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 267 | as_fn_exit () |
| 268 | { |
| 269 | set +e |
| 270 | as_fn_set_status $1 |
| 271 | exit $1 |
| 272 | } # as_fn_exit |
| 273 | |
| 274 | # as_fn_mkdir_p |
| 275 | # ------------- |
| 276 | # Create "$as_dir" as a directory, including parents if necessary. |
| 277 | as_fn_mkdir_p () |
| 278 | { |
| 279 | |
| 280 | case $as_dir in #( |
| 281 | -*) as_dir=./$as_dir;; |
| 282 | esac |
| 283 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 284 | as_dirs= |
| 285 | while :; do |
| 286 | case $as_dir in #( |
| 287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 288 | *) as_qdir=$as_dir;; |
| 289 | esac |
| 290 | as_dirs="'$as_qdir' $as_dirs" |
| 291 | as_dir=`$as_dirname -- "$as_dir" || |
| 292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 293 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 294 | X"$as_dir" : 'X\(//\)$' \| \ |
| 295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 296 | $as_echo X"$as_dir" | |
| 297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 298 | s//\1/ |
| 299 | q |
| 300 | } |
| 301 | /^X\(\/\/\)[^/].*/{ |
| 302 | s//\1/ |
| 303 | q |
| 304 | } |
| 305 | /^X\(\/\/\)$/{ |
| 306 | s//\1/ |
| 307 | q |
| 308 | } |
| 309 | /^X\(\/\).*/{ |
| 310 | s//\1/ |
| 311 | q |
| 312 | } |
| 313 | s/.*/./; q'` |
| 314 | test -d "$as_dir" && break |
| 315 | done |
| 316 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 318 | |
| 319 | |
| 320 | } # as_fn_mkdir_p |
| 321 | # as_fn_append VAR VALUE |
| 322 | # ---------------------- |
| 323 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 324 | # advantage of any shell optimizations that allow amortized linear growth over |
| 325 | # repeated appends, instead of the typical quadratic growth present in naive |
| 326 | # implementations. |
| 327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 328 | eval 'as_fn_append () |
| 329 | { |
| 330 | eval $1+=\$2 |
| 331 | }' |
| 332 | else |
| 333 | as_fn_append () |
| 334 | { |
| 335 | eval $1=\$$1\$2 |
| 336 | } |
| 337 | fi # as_fn_append |
| 338 | |
| 339 | # as_fn_arith ARG... |
| 340 | # ------------------ |
| 341 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 343 | # must be portable across $(()) and expr. |
| 344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 345 | eval 'as_fn_arith () |
| 346 | { |
| 347 | as_val=$(( $* )) |
| 348 | }' |
| 349 | else |
| 350 | as_fn_arith () |
| 351 | { |
| 352 | as_val=`expr "$@" || test $? -eq 1` |
| 353 | } |
| 354 | fi # as_fn_arith |
| 355 | |
| 356 | |
| 357 | # as_fn_error ERROR [LINENO LOG_FD] |
| 358 | # --------------------------------- |
| 359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 361 | # script with status $?, using 1 if that was 0. |
| 362 | as_fn_error () |
| 363 | { |
| 364 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 365 | if test "$3"; then |
| 366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 368 | fi |
| 369 | $as_echo "$as_me: error: $1" >&2 |
| 370 | as_fn_exit $as_status |
| 371 | } # as_fn_error |
| 372 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 375 | as_expr=expr |
| 376 | else |
| 377 | as_expr=false |
| 378 | fi |
| 379 | |
| 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 381 | as_basename=basename |
| 382 | else |
| 383 | as_basename=false |
| 384 | fi |
| 385 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 387 | as_dirname=dirname |
| 388 | else |
| 389 | as_dirname=false |
| 390 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 391 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 392 | as_me=`$as_basename -- "$0" || |
| 393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 394 | X"$0" : 'X\(//\)$' \| \ |
| 395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 396 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 398 | s//\1/ |
| 399 | q |
| 400 | } |
| 401 | /^X\/\(\/\/\)$/{ |
| 402 | s//\1/ |
| 403 | q |
| 404 | } |
| 405 | /^X\/\(\/\).*/{ |
| 406 | s//\1/ |
| 407 | q |
| 408 | } |
| 409 | s/.*/./; q'` |
| 410 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 411 | # Avoid depending upon Character Ranges. |
| 412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 415 | as_cr_digits='0123456789' |
| 416 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 417 | |
| 418 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 424 | sed -n ' |
| 425 | p |
| 426 | /[$]LINENO/= |
| 427 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 428 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 429 | s/[$]LINENO.*/&-/ |
| 430 | t lineno |
| 431 | b |
| 432 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 433 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 434 | :loop |
| 435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 436 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 437 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 438 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 439 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 441 | |
| 442 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 443 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 444 | # original and so on. Autoconf is especially sensitive to this). |
| 445 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 446 | # Exit status is that of the last command. |
| 447 | exit |
| 448 | } |
| 449 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 450 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 451 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 452 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 453 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 455 | xy) ECHO_C='\c';; |
| 456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 457 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 458 | esac;; |
| 459 | *) |
| 460 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 461 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 462 | |
| 463 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 464 | if test -d conf$$.dir; then |
| 465 | rm -f conf$$.dir/conf$$.file |
| 466 | else |
| 467 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 468 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 469 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 470 | if (echo >conf$$.file) 2>/dev/null; then |
| 471 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 472 | as_ln_s='ln -s' |
| 473 | # ... but there are two gotchas: |
| 474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 476 | # In both cases, we have to default to `cp -p'. |
| 477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 478 | as_ln_s='cp -p' |
| 479 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 480 | as_ln_s=ln |
| 481 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 482 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 483 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | else |
| 485 | as_ln_s='cp -p' |
| 486 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 488 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 489 | |
| 490 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 492 | else |
| 493 | test -d ./-p && rmdir ./-p |
| 494 | as_mkdir_p=false |
| 495 | fi |
| 496 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 497 | if test -x / >/dev/null 2>&1; then |
| 498 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 499 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 500 | if ls -dL / >/dev/null 2>&1; then |
| 501 | as_ls_L_option=L |
| 502 | else |
| 503 | as_ls_L_option= |
| 504 | fi |
| 505 | as_test_x=' |
| 506 | eval sh -c '\'' |
| 507 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 508 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 509 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 510 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 511 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 512 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 514 | ???[sx]*):;;*)false;;esac;fi |
| 515 | '\'' sh |
| 516 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 517 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 518 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 519 | |
| 520 | # Sed expression to map a string onto a valid CPP name. |
| 521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 522 | |
| 523 | # Sed expression to map a string onto a valid variable name. |
| 524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 525 | |
| 526 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 527 | exec 7<&0 </dev/null 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 528 | |
| 529 | # Name of the host. |
| 530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 531 | # so uname gets run too. |
| 532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 533 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 534 | # |
| 535 | # Initializations. |
| 536 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 537 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 538 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 539 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 540 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 541 | cross_compiling=no |
| 542 | subdirs= |
| 543 | MFLAGS= |
| 544 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 545 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 546 | # Identity of this package. |
| 547 | PACKAGE_NAME= |
| 548 | PACKAGE_TARNAME= |
| 549 | PACKAGE_VERSION= |
| 550 | PACKAGE_STRING= |
| 551 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 552 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 553 | |
| 554 | ac_unique_file="version.h" |
| 555 | # Factoring default headers for most tests. |
| 556 | ac_includes_default="\ |
| 557 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 558 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | # include <sys/types.h> |
| 560 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 561 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # include <sys/stat.h> |
| 563 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 564 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # include <stdlib.h> |
| 566 | # include <stddef.h> |
| 567 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 568 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 569 | # include <stdlib.h> |
| 570 | # endif |
| 571 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 572 | #ifdef HAVE_STRING_H |
| 573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 574 | # include <memory.h> |
| 575 | # endif |
| 576 | # include <string.h> |
| 577 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 578 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 579 | # include <strings.h> |
| 580 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 581 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 582 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 583 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 584 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 585 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 586 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 587 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 588 | # include <unistd.h> |
| 589 | #endif" |
| 590 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 591 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 592 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 593 | BUILD_LDFLAGS |
| 594 | BUILD_CFLAGS |
| 595 | INTL_FLAGS |
| 596 | DO_TEST_SUITE |
| 597 | ET_DIR |
| 598 | SS_DIR |
| 599 | LDFLAG_STATIC |
| 600 | root_sysconfdir |
| 601 | root_libdir |
| 602 | root_sbindir |
| 603 | root_bindir |
| 604 | root_prefix |
| 605 | UNIX_CMT |
| 606 | CYGWIN_CMT |
| 607 | LINUX_CMT |
| 608 | UNI_DIFF_OPTS |
| 609 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 610 | SOCKET_LIB |
| 611 | SIZEOF_LONG_LONG |
| 612 | SIZEOF_LONG |
| 613 | SIZEOF_INT |
| 614 | SIZEOF_SHORT |
| 615 | BUILD_CC |
| 616 | MAKEINFO |
| 617 | STRIP |
| 618 | AR |
| 619 | LDCONFIG |
| 620 | PERL |
| 621 | SED |
| 622 | AWK |
| 623 | CHMOD |
| 624 | RM |
| 625 | CP |
| 626 | MV |
| 627 | LN_S |
| 628 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 629 | ifNotGNUmake |
| 630 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 631 | BINARY_TYPE |
| 632 | POSUB |
| 633 | LTLIBINTL |
| 634 | LIBINTL |
| 635 | INTLLIBS |
| 636 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 637 | INTLOBJS |
| 638 | GENCAT |
| 639 | INSTOBJEXT |
| 640 | DATADIRNAME |
| 641 | CATOBJEXT |
| 642 | USE_INCLUDED_LIBINTL |
| 643 | BUILD_INCLUDED_LIBINTL |
| 644 | INTLBISON |
| 645 | LTLIBICONV |
| 646 | LIBICONV |
| 647 | HAVE_WPRINTF |
| 648 | HAVE_SNPRINTF |
| 649 | HAVE_ASPRINTF |
| 650 | HAVE_POSIX_PRINTF |
| 651 | GLIBC21 |
| 652 | ALLOCA |
| 653 | RANLIB |
| 654 | MSGMERGE |
| 655 | XGETTEXT |
| 656 | GMSGFMT |
| 657 | MSGFMT |
| 658 | USE_NLS |
| 659 | MKINSTALLDIRS |
| 660 | INSTALL_DATA |
| 661 | INSTALL_SCRIPT |
| 662 | INSTALL_PROGRAM |
| 663 | SET_MAKE |
| 664 | VERSION |
| 665 | PACKAGE |
| 666 | GETTEXT_PACKAGE |
| 667 | UUIDD_CMT |
| 668 | E2INITRD_MAN |
| 669 | E2INITRD_PROG |
| 670 | FSCK_MAN |
| 671 | FSCK_PROG |
| 672 | RESIZER_CMT |
| 673 | IMAGER_CMT |
| 674 | DEBUGFS_CMT |
| 675 | BLKID_CMT |
| 676 | DEPPROFILED_LIBBLKID |
| 677 | PROFILED_LIBBLKID |
| 678 | DEPSTATIC_LIBBLKID |
| 679 | STATIC_LIBBLKID |
| 680 | DEPLIBBLKID |
| 681 | LIBBLKID |
| 682 | UUID_CMT |
| 683 | DEPPROFILED_LIBUUID |
| 684 | PROFILED_LIBUUID |
| 685 | DEPSTATIC_LIBUUID |
| 686 | STATIC_LIBUUID |
| 687 | DEPLIBUUID |
| 688 | LIBUUID |
| 689 | PKG_CONFIG |
| 690 | TEST_IO_CMT |
| 691 | PRIVATE_LIBS_CMT |
| 692 | LDFLAG_DYNAMIC |
| 693 | PROFILED_LIB_EXT |
| 694 | STATIC_LIB_EXT |
| 695 | LIB_EXT |
| 696 | CHECKER_CMT |
| 697 | PROFILE_CMT |
| 698 | BSDLIB_CMT |
| 699 | ELF_CMT |
| 700 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 701 | Q |
| 702 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame^] | 703 | LINK_BUILD_FLAGS |
| 704 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 705 | MAINTAINER_CMT |
| 706 | LINUX_INCLUDE |
| 707 | EGREP |
| 708 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 709 | CPP |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 710 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 711 | OBJEXT |
| 712 | EXEEXT |
| 713 | ac_ct_CC |
| 714 | CPPFLAGS |
| 715 | LDFLAGS |
| 716 | CFLAGS |
| 717 | CC |
| 718 | host_os |
| 719 | host_vendor |
| 720 | host_cpu |
| 721 | host |
| 722 | build_os |
| 723 | build_vendor |
| 724 | build_cpu |
| 725 | build |
| 726 | E2FSPROGS_PKGVER |
| 727 | E2FSPROGS_VERSION |
| 728 | E2FSPROGS_DAY |
| 729 | E2FSPROGS_MONTH |
| 730 | E2FSPROGS_YEAR |
| 731 | target_alias |
| 732 | host_alias |
| 733 | build_alias |
| 734 | LIBS |
| 735 | ECHO_T |
| 736 | ECHO_N |
| 737 | ECHO_C |
| 738 | DEFS |
| 739 | mandir |
| 740 | localedir |
| 741 | libdir |
| 742 | psdir |
| 743 | pdfdir |
| 744 | dvidir |
| 745 | htmldir |
| 746 | infodir |
| 747 | docdir |
| 748 | oldincludedir |
| 749 | includedir |
| 750 | localstatedir |
| 751 | sharedstatedir |
| 752 | sysconfdir |
| 753 | datadir |
| 754 | datarootdir |
| 755 | libexecdir |
| 756 | sbindir |
| 757 | bindir |
| 758 | program_transform_name |
| 759 | prefix |
| 760 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 761 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 762 | PACKAGE_BUGREPORT |
| 763 | PACKAGE_STRING |
| 764 | PACKAGE_VERSION |
| 765 | PACKAGE_TARNAME |
| 766 | PACKAGE_NAME |
| 767 | PATH_SEPARATOR |
| 768 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 769 | ac_subst_files='MCONFIG |
| 770 | MAKEFILE_ELF |
| 771 | MAKEFILE_BSDLIB |
| 772 | MAKEFILE_PROFILE |
| 773 | MAKEFILE_CHECKER |
| 774 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 775 | ASM_TYPES_HEADER |
| 776 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 777 | ac_user_opts=' |
| 778 | enable_option_checking |
| 779 | with_diet_libc |
| 780 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 781 | with_ccopts |
| 782 | with_ldopts |
| 783 | with_root_prefix |
| 784 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame^] | 785 | enable_symlink_install |
| 786 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 787 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 788 | enable_compression |
| 789 | enable_htree |
| 790 | enable_elf_shlibs |
| 791 | enable_bsd_shlibs |
| 792 | enable_profile |
| 793 | enable_checker |
| 794 | enable_jbd_debug |
| 795 | enable_blkid_debug |
| 796 | enable_testio_debug |
| 797 | enable_libuuid |
| 798 | enable_libblkid |
| 799 | enable_debugfs |
| 800 | enable_imager |
| 801 | enable_resizer |
| 802 | enable_fsck |
| 803 | enable_e2initrd_helper |
| 804 | enable_tls |
| 805 | enable_uuidd |
| 806 | enable_nls |
| 807 | with_gnu_ld |
| 808 | enable_rpath |
| 809 | with_libiconv_prefix |
| 810 | with_included_gettext |
| 811 | with_libintl_prefix |
| 812 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 813 | ac_precious_vars='build_alias |
| 814 | host_alias |
| 815 | target_alias |
| 816 | CC |
| 817 | CFLAGS |
| 818 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 819 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 820 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 821 | CPP |
| 822 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 823 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 824 | |
| 825 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 826 | ac_init_help= |
| 827 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 828 | ac_unrecognized_opts= |
| 829 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 830 | # The variables have the same names as the options, with |
| 831 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 832 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 833 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 834 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 835 | no_recursion= |
| 836 | prefix=NONE |
| 837 | program_prefix=NONE |
| 838 | program_suffix=NONE |
| 839 | program_transform_name=s,x,x, |
| 840 | silent= |
| 841 | site= |
| 842 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 843 | verbose= |
| 844 | x_includes=NONE |
| 845 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 846 | |
| 847 | # Installation directory options. |
| 848 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 849 | # and all the variables that are supposed to be based on exec_prefix |
| 850 | # by default will actually change. |
| 851 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 852 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 853 | bindir='${exec_prefix}/bin' |
| 854 | sbindir='${exec_prefix}/sbin' |
| 855 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 856 | datarootdir='${prefix}/share' |
| 857 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 858 | sysconfdir='${prefix}/etc' |
| 859 | sharedstatedir='${prefix}/com' |
| 860 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 861 | includedir='${prefix}/include' |
| 862 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 863 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 864 | infodir='${datarootdir}/info' |
| 865 | htmldir='${docdir}' |
| 866 | dvidir='${docdir}' |
| 867 | pdfdir='${docdir}' |
| 868 | psdir='${docdir}' |
| 869 | libdir='${exec_prefix}/lib' |
| 870 | localedir='${datarootdir}/locale' |
| 871 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 872 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 873 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 874 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 875 | for ac_option |
| 876 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 877 | # If the previous option needs an argument, assign it. |
| 878 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 879 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 880 | ac_prev= |
| 881 | continue |
| 882 | fi |
| 883 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 884 | case $ac_option in |
| 885 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 886 | *) ac_optarg=yes ;; |
| 887 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 888 | |
| 889 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 890 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 891 | case $ac_dashdash$ac_option in |
| 892 | --) |
| 893 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 894 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 895 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 896 | ac_prev=bindir ;; |
| 897 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 898 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 899 | |
| 900 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 901 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 902 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 903 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 904 | |
| 905 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 906 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 907 | ac_prev=cache_file ;; |
| 908 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 909 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 910 | cache_file=$ac_optarg ;; |
| 911 | |
| 912 | --config-cache | -C) |
| 913 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 915 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 916 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 917 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 918 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 919 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 920 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 921 | | --dataroo | --dataro | --datar) |
| 922 | ac_prev=datarootdir ;; |
| 923 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 924 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 925 | datarootdir=$ac_optarg ;; |
| 926 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 927 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 928 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 929 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 930 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 931 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 932 | ac_useropt_orig=$ac_useropt |
| 933 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 934 | case $ac_user_opts in |
| 935 | *" |
| 936 | "enable_$ac_useropt" |
| 937 | "*) ;; |
| 938 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 939 | ac_unrecognized_sep=', ';; |
| 940 | esac |
| 941 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 942 | |
| 943 | -docdir | --docdir | --docdi | --doc | --do) |
| 944 | ac_prev=docdir ;; |
| 945 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 946 | docdir=$ac_optarg ;; |
| 947 | |
| 948 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 949 | ac_prev=dvidir ;; |
| 950 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 951 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 952 | |
| 953 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 954 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 955 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 956 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 957 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 958 | ac_useropt_orig=$ac_useropt |
| 959 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 960 | case $ac_user_opts in |
| 961 | *" |
| 962 | "enable_$ac_useropt" |
| 963 | "*) ;; |
| 964 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 965 | ac_unrecognized_sep=', ';; |
| 966 | esac |
| 967 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 968 | |
| 969 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 970 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 971 | | --exec | --exe | --ex) |
| 972 | ac_prev=exec_prefix ;; |
| 973 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 974 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 975 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 976 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 977 | |
| 978 | -gas | --gas | --ga | --g) |
| 979 | # Obsolete; use --with-gas. |
| 980 | with_gas=yes ;; |
| 981 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 982 | -help | --help | --hel | --he | -h) |
| 983 | ac_init_help=long ;; |
| 984 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 985 | ac_init_help=recursive ;; |
| 986 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 987 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 988 | |
| 989 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 990 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 991 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 992 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 993 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 994 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 995 | ac_prev=htmldir ;; |
| 996 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 997 | | --ht=*) |
| 998 | htmldir=$ac_optarg ;; |
| 999 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1000 | -includedir | --includedir | --includedi | --included | --include \ |
| 1001 | | --includ | --inclu | --incl | --inc) |
| 1002 | ac_prev=includedir ;; |
| 1003 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1004 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1005 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1006 | |
| 1007 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1008 | ac_prev=infodir ;; |
| 1009 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1010 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1011 | |
| 1012 | -libdir | --libdir | --libdi | --libd) |
| 1013 | ac_prev=libdir ;; |
| 1014 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1015 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1016 | |
| 1017 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1018 | | --libexe | --libex | --libe) |
| 1019 | ac_prev=libexecdir ;; |
| 1020 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1021 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1022 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1023 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1024 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1025 | ac_prev=localedir ;; |
| 1026 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1027 | localedir=$ac_optarg ;; |
| 1028 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1029 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1030 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1031 | ac_prev=localstatedir ;; |
| 1032 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1033 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1034 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1035 | |
| 1036 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1037 | ac_prev=mandir ;; |
| 1038 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1039 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1040 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1041 | -nfp | --nfp | --nf) |
| 1042 | # Obsolete; use --without-fp. |
| 1043 | with_fp=no ;; |
| 1044 | |
| 1045 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1046 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1047 | no_create=yes ;; |
| 1048 | |
| 1049 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1050 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1051 | no_recursion=yes ;; |
| 1052 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1053 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1054 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1055 | | --oldin | --oldi | --old | --ol | --o) |
| 1056 | ac_prev=oldincludedir ;; |
| 1057 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1058 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1059 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1060 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1061 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1062 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1063 | ac_prev=prefix ;; |
| 1064 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1065 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1066 | |
| 1067 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1068 | | --program-pre | --program-pr | --program-p) |
| 1069 | ac_prev=program_prefix ;; |
| 1070 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1071 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1072 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1073 | |
| 1074 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1075 | | --program-suf | --program-su | --program-s) |
| 1076 | ac_prev=program_suffix ;; |
| 1077 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1078 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1079 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1080 | |
| 1081 | -program-transform-name | --program-transform-name \ |
| 1082 | | --program-transform-nam | --program-transform-na \ |
| 1083 | | --program-transform-n | --program-transform- \ |
| 1084 | | --program-transform | --program-transfor \ |
| 1085 | | --program-transfo | --program-transf \ |
| 1086 | | --program-trans | --program-tran \ |
| 1087 | | --progr-tra | --program-tr | --program-t) |
| 1088 | ac_prev=program_transform_name ;; |
| 1089 | -program-transform-name=* | --program-transform-name=* \ |
| 1090 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1091 | | --program-transform-n=* | --program-transform-=* \ |
| 1092 | | --program-transform=* | --program-transfor=* \ |
| 1093 | | --program-transfo=* | --program-transf=* \ |
| 1094 | | --program-trans=* | --program-tran=* \ |
| 1095 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1096 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1098 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1099 | ac_prev=pdfdir ;; |
| 1100 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1101 | pdfdir=$ac_optarg ;; |
| 1102 | |
| 1103 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1104 | ac_prev=psdir ;; |
| 1105 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1106 | psdir=$ac_optarg ;; |
| 1107 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1108 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1109 | | -silent | --silent | --silen | --sile | --sil) |
| 1110 | silent=yes ;; |
| 1111 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1112 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1113 | ac_prev=sbindir ;; |
| 1114 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1115 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1116 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1117 | |
| 1118 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1119 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1120 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1121 | | --sha | --sh) |
| 1122 | ac_prev=sharedstatedir ;; |
| 1123 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1124 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1125 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1126 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1127 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1128 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1129 | -site | --site | --sit) |
| 1130 | ac_prev=site ;; |
| 1131 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1132 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1133 | |
| 1134 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1135 | ac_prev=srcdir ;; |
| 1136 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1137 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1138 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1139 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1140 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1141 | ac_prev=sysconfdir ;; |
| 1142 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1143 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1144 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1145 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1146 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1147 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1148 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1149 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1150 | |
| 1151 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1152 | verbose=yes ;; |
| 1153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1154 | -version | --version | --versio | --versi | --vers | -V) |
| 1155 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1156 | |
| 1157 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1158 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1159 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1160 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1161 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1162 | ac_useropt_orig=$ac_useropt |
| 1163 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1164 | case $ac_user_opts in |
| 1165 | *" |
| 1166 | "with_$ac_useropt" |
| 1167 | "*) ;; |
| 1168 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1169 | ac_unrecognized_sep=', ';; |
| 1170 | esac |
| 1171 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1172 | |
| 1173 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1174 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1175 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1176 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1177 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1178 | ac_useropt_orig=$ac_useropt |
| 1179 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1180 | case $ac_user_opts in |
| 1181 | *" |
| 1182 | "with_$ac_useropt" |
| 1183 | "*) ;; |
| 1184 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1185 | ac_unrecognized_sep=', ';; |
| 1186 | esac |
| 1187 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1188 | |
| 1189 | --x) |
| 1190 | # Obsolete; use --with-x. |
| 1191 | with_x=yes ;; |
| 1192 | |
| 1193 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1194 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1195 | ac_prev=x_includes ;; |
| 1196 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1197 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1198 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1199 | |
| 1200 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1201 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1202 | ac_prev=x_libraries ;; |
| 1203 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1204 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1205 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1206 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1207 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1208 | Try \`$0 --help' for more information." |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1209 | ;; |
| 1210 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1211 | *=*) |
| 1212 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1213 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1214 | case $ac_envvar in #( |
| 1215 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1216 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1217 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1218 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1219 | export $ac_envvar ;; |
| 1220 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1221 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1222 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1223 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1224 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1225 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1226 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1227 | ;; |
| 1228 | |
| 1229 | esac |
| 1230 | done |
| 1231 | |
| 1232 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1233 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1234 | as_fn_error "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1235 | fi |
| 1236 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1237 | if test -n "$ac_unrecognized_opts"; then |
| 1238 | case $enable_option_checking in |
| 1239 | no) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1240 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1241 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1242 | esac |
| 1243 | fi |
| 1244 | |
| 1245 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1246 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1247 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1248 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1249 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1250 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1251 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1252 | # Remove trailing slashes. |
| 1253 | case $ac_val in |
| 1254 | */ ) |
| 1255 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1256 | eval $ac_var=\$ac_val;; |
| 1257 | esac |
| 1258 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1259 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1260 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1261 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1262 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1263 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1264 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1265 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1266 | # There might be people who depend on the old broken behavior: `$host' |
| 1267 | # used to hold the argument of --host etc. |
| 1268 | # FIXME: To remove some day. |
| 1269 | build=$build_alias |
| 1270 | host=$host_alias |
| 1271 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1272 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1273 | # FIXME: To remove some day. |
| 1274 | if test "x$host_alias" != x; then |
| 1275 | if test "x$build_alias" = x; then |
| 1276 | cross_compiling=maybe |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1277 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1278 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1279 | elif test "x$build_alias" != "x$host_alias"; then |
| 1280 | cross_compiling=yes |
| 1281 | fi |
| 1282 | fi |
| 1283 | |
| 1284 | ac_tool_prefix= |
| 1285 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1286 | |
| 1287 | test "$silent" = yes && exec 6>/dev/null |
| 1288 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1289 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1290 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1291 | ac_ls_di=`ls -di .` && |
| 1292 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1293 | as_fn_error "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1294 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1295 | as_fn_error "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1296 | |
| 1297 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1298 | # Find the source files, if location was not specified. |
| 1299 | if test -z "$srcdir"; then |
| 1300 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1301 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1302 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1303 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1304 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1305 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1306 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1307 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1308 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1309 | s//\1/ |
| 1310 | q |
| 1311 | } |
| 1312 | /^X\(\/\/\)[^/].*/{ |
| 1313 | s//\1/ |
| 1314 | q |
| 1315 | } |
| 1316 | /^X\(\/\/\)$/{ |
| 1317 | s//\1/ |
| 1318 | q |
| 1319 | } |
| 1320 | /^X\(\/\).*/{ |
| 1321 | s//\1/ |
| 1322 | q |
| 1323 | } |
| 1324 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1325 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1326 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1327 | srcdir=.. |
| 1328 | fi |
| 1329 | else |
| 1330 | ac_srcdir_defaulted=no |
| 1331 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1332 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1333 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1334 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1335 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1336 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1337 | ac_abs_confdir=`( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1338 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1339 | pwd)` |
| 1340 | # When building in place, set srcdir=. |
| 1341 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1342 | srcdir=. |
| 1343 | fi |
| 1344 | # Remove unnecessary trailing slashes from srcdir. |
| 1345 | # Double slashes in file names in object file debugging info |
| 1346 | # mess up M-x gdb in Emacs. |
| 1347 | case $srcdir in |
| 1348 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1349 | esac |
| 1350 | for ac_var in $ac_precious_vars; do |
| 1351 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1352 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1353 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1354 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1355 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1357 | # |
| 1358 | # Report the --help message. |
| 1359 | # |
| 1360 | if test "$ac_init_help" = "long"; then |
| 1361 | # Omit some internal or obsolete options to make the list less imposing. |
| 1362 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1363 | cat <<_ACEOF |
| 1364 | \`configure' configures this package to adapt to many kinds of systems. |
| 1365 | |
| 1366 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1367 | |
| 1368 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1369 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1370 | |
| 1371 | Defaults for the options are specified in brackets. |
| 1372 | |
| 1373 | Configuration: |
| 1374 | -h, --help display this help and exit |
| 1375 | --help=short display options specific to this package |
| 1376 | --help=recursive display the short help of all the included packages |
| 1377 | -V, --version display version information and exit |
| 1378 | -q, --quiet, --silent do not print \`checking...' messages |
| 1379 | --cache-file=FILE cache test results in FILE [disabled] |
| 1380 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1381 | -n, --no-create do not create output files |
| 1382 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1383 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1384 | Installation directories: |
| 1385 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1386 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1387 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1388 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1389 | |
| 1390 | By default, \`make install' will install all the files in |
| 1391 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1392 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1393 | for instance \`--prefix=\$HOME'. |
| 1394 | |
| 1395 | For better control, use the options below. |
| 1396 | |
| 1397 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1398 | --bindir=DIR user executables [EPREFIX/bin] |
| 1399 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1400 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1401 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1402 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1403 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1404 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1405 | --includedir=DIR C header files [PREFIX/include] |
| 1406 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1407 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1408 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1409 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1410 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1411 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1412 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1413 | --htmldir=DIR html documentation [DOCDIR] |
| 1414 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1415 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1416 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1417 | _ACEOF |
| 1418 | |
| 1419 | cat <<\_ACEOF |
| 1420 | |
| 1421 | System types: |
| 1422 | --build=BUILD configure for building on BUILD [guessed] |
| 1423 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1424 | _ACEOF |
| 1425 | fi |
| 1426 | |
| 1427 | if test -n "$ac_init_help"; then |
| 1428 | |
| 1429 | cat <<\_ACEOF |
| 1430 | |
| 1431 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1432 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1433 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1434 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1435 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame^] | 1436 | --enable-symlink-install use symlinks when installing instead of hard links |
| 1437 | --enable-symlink-build use symlinks while building instead of hard links |
| 1438 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1439 | --enable-compression enable EXPERIMENTAL compression support |
| 1440 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1441 | --enable-elf-shlibs select ELF shared libraries |
| 1442 | --enable-bsd-shlibs select BSD shared libraries |
| 1443 | --enable-profile build profiling libraries |
| 1444 | --enable-checker build checker libraries |
| 1445 | --enable-jbd-debug enable journal debugging |
| 1446 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1447 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1448 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1449 | --disable-libblkid do not build private blkid library |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1450 | --disable-debugfs disable support of debugfs program |
| 1451 | --disable-imager disable support of e2image program |
| 1452 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1453 | --enable-fsck build fsck wrapper program |
| 1454 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1455 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1456 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1457 | --disable-nls do not use Native Language Support |
| 1458 | --disable-rpath do not hardcode runtime library paths |
| 1459 | |
| 1460 | Optional Packages: |
| 1461 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1462 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1463 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1464 | --with-cc no longer supported, use CC= instead |
| 1465 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1466 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1467 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1468 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1469 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1470 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1471 | --with-included-gettext use the GNU gettext library included here |
| 1472 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1473 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1474 | |
| 1475 | Some influential environment variables: |
| 1476 | CC C compiler command |
| 1477 | CFLAGS C compiler flags |
| 1478 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1479 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1480 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1481 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1482 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1483 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1484 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1485 | |
| 1486 | Use these variables to override the choices made by `configure' or to help |
| 1487 | it to find libraries and programs with nonstandard names/locations. |
| 1488 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1489 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1490 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1491 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1492 | fi |
| 1493 | |
| 1494 | if test "$ac_init_help" = "recursive"; then |
| 1495 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1496 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1497 | test -d "$ac_dir" || |
| 1498 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1499 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1500 | ac_builddir=. |
| 1501 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1502 | case "$ac_dir" in |
| 1503 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1504 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1505 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1506 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1507 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1508 | case $ac_top_builddir_sub in |
| 1509 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1510 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1511 | esac ;; |
| 1512 | esac |
| 1513 | ac_abs_top_builddir=$ac_pwd |
| 1514 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1515 | # for backward compatibility: |
| 1516 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1517 | |
| 1518 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1519 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1520 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1521 | ac_top_srcdir=$ac_top_builddir_sub |
| 1522 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1523 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1524 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1525 | ac_top_srcdir=$srcdir |
| 1526 | ac_abs_top_srcdir=$srcdir ;; |
| 1527 | *) # Relative name. |
| 1528 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1529 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1530 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1531 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1532 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1533 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1534 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1535 | # Check for guested configure. |
| 1536 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1537 | echo && |
| 1538 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1539 | elif test -f "$ac_srcdir/configure"; then |
| 1540 | echo && |
| 1541 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1542 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1543 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1544 | fi || ac_status=$? |
| 1545 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1546 | done |
| 1547 | fi |
| 1548 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1549 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1550 | if $ac_init_version; then |
| 1551 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1552 | configure |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1553 | generated by GNU Autoconf 2.64 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1554 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1555 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1556 | This configure script is free software; the Free Software Foundation |
| 1557 | gives unlimited permission to copy, distribute and modify it. |
| 1558 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1559 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1560 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1561 | |
| 1562 | ## ------------------------ ## |
| 1563 | ## Autoconf initialization. ## |
| 1564 | ## ------------------------ ## |
| 1565 | |
| 1566 | # ac_fn_c_try_compile LINENO |
| 1567 | # -------------------------- |
| 1568 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1569 | ac_fn_c_try_compile () |
| 1570 | { |
| 1571 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1572 | rm -f conftest.$ac_objext |
| 1573 | if { { ac_try="$ac_compile" |
| 1574 | case "(($ac_try" in |
| 1575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1576 | *) ac_try_echo=$ac_try;; |
| 1577 | esac |
| 1578 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1579 | $as_echo "$ac_try_echo"; } >&5 |
| 1580 | (eval "$ac_compile") 2>conftest.err |
| 1581 | ac_status=$? |
| 1582 | if test -s conftest.err; then |
| 1583 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1584 | cat conftest.er1 >&5 |
| 1585 | mv -f conftest.er1 conftest.err |
| 1586 | fi |
| 1587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1588 | test $ac_status = 0; } && { |
| 1589 | test -z "$ac_c_werror_flag" || |
| 1590 | test ! -s conftest.err |
| 1591 | } && test -s conftest.$ac_objext; then : |
| 1592 | ac_retval=0 |
| 1593 | else |
| 1594 | $as_echo "$as_me: failed program was:" >&5 |
| 1595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1596 | |
| 1597 | ac_retval=1 |
| 1598 | fi |
| 1599 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1600 | return $ac_retval |
| 1601 | |
| 1602 | } # ac_fn_c_try_compile |
| 1603 | |
| 1604 | # ac_fn_c_try_link LINENO |
| 1605 | # ----------------------- |
| 1606 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1607 | ac_fn_c_try_link () |
| 1608 | { |
| 1609 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1610 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1611 | if { { ac_try="$ac_link" |
| 1612 | case "(($ac_try" in |
| 1613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1614 | *) ac_try_echo=$ac_try;; |
| 1615 | esac |
| 1616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1617 | $as_echo "$ac_try_echo"; } >&5 |
| 1618 | (eval "$ac_link") 2>conftest.err |
| 1619 | ac_status=$? |
| 1620 | if test -s conftest.err; then |
| 1621 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1622 | cat conftest.er1 >&5 |
| 1623 | mv -f conftest.er1 conftest.err |
| 1624 | fi |
| 1625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1626 | test $ac_status = 0; } && { |
| 1627 | test -z "$ac_c_werror_flag" || |
| 1628 | test ! -s conftest.err |
| 1629 | } && test -s conftest$ac_exeext && { |
| 1630 | test "$cross_compiling" = yes || |
| 1631 | $as_test_x conftest$ac_exeext |
| 1632 | }; then : |
| 1633 | ac_retval=0 |
| 1634 | else |
| 1635 | $as_echo "$as_me: failed program was:" >&5 |
| 1636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1637 | |
| 1638 | ac_retval=1 |
| 1639 | fi |
| 1640 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1641 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1642 | # interfere with the next link command; also delete a directory that is |
| 1643 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1644 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1645 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1646 | return $ac_retval |
| 1647 | |
| 1648 | } # ac_fn_c_try_link |
| 1649 | |
| 1650 | # ac_fn_c_try_cpp LINENO |
| 1651 | # ---------------------- |
| 1652 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1653 | ac_fn_c_try_cpp () |
| 1654 | { |
| 1655 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1656 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1657 | case "(($ac_try" in |
| 1658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1659 | *) ac_try_echo=$ac_try;; |
| 1660 | esac |
| 1661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1662 | $as_echo "$ac_try_echo"; } >&5 |
| 1663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1664 | ac_status=$? |
| 1665 | if test -s conftest.err; then |
| 1666 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1667 | cat conftest.er1 >&5 |
| 1668 | mv -f conftest.er1 conftest.err |
| 1669 | fi |
| 1670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1671 | test $ac_status = 0; } >/dev/null && { |
| 1672 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1673 | test ! -s conftest.err |
| 1674 | }; then : |
| 1675 | ac_retval=0 |
| 1676 | else |
| 1677 | $as_echo "$as_me: failed program was:" >&5 |
| 1678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1679 | |
| 1680 | ac_retval=1 |
| 1681 | fi |
| 1682 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1683 | return $ac_retval |
| 1684 | |
| 1685 | } # ac_fn_c_try_cpp |
| 1686 | |
| 1687 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1688 | # ------------------------------------------------------- |
| 1689 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1690 | # the include files in INCLUDES and setting the cache variable VAR |
| 1691 | # accordingly. |
| 1692 | ac_fn_c_check_header_mongrel () |
| 1693 | { |
| 1694 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1695 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1697 | $as_echo_n "checking for $2... " >&6; } |
| 1698 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1699 | $as_echo_n "(cached) " >&6 |
| 1700 | fi |
| 1701 | eval ac_res=\$$3 |
| 1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1703 | $as_echo "$ac_res" >&6; } |
| 1704 | else |
| 1705 | # Is the header compilable? |
| 1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1707 | $as_echo_n "checking $2 usability... " >&6; } |
| 1708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1709 | /* end confdefs.h. */ |
| 1710 | $4 |
| 1711 | #include <$2> |
| 1712 | _ACEOF |
| 1713 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1714 | ac_header_compiler=yes |
| 1715 | else |
| 1716 | ac_header_compiler=no |
| 1717 | fi |
| 1718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1720 | $as_echo "$ac_header_compiler" >&6; } |
| 1721 | |
| 1722 | # Is the header present? |
| 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1724 | $as_echo_n "checking $2 presence... " >&6; } |
| 1725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1726 | /* end confdefs.h. */ |
| 1727 | #include <$2> |
| 1728 | _ACEOF |
| 1729 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1730 | ac_header_preproc=yes |
| 1731 | else |
| 1732 | ac_header_preproc=no |
| 1733 | fi |
| 1734 | rm -f conftest.err conftest.$ac_ext |
| 1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1736 | $as_echo "$ac_header_preproc" >&6; } |
| 1737 | |
| 1738 | # So? What about this header? |
| 1739 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1740 | yes:no: ) |
| 1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1742 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1744 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1745 | ;; |
| 1746 | no:yes:* ) |
| 1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1748 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1750 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1752 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1754 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1756 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1757 | ;; |
| 1758 | esac |
| 1759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1760 | $as_echo_n "checking for $2... " >&6; } |
| 1761 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1762 | $as_echo_n "(cached) " >&6 |
| 1763 | else |
| 1764 | eval "$3=\$ac_header_compiler" |
| 1765 | fi |
| 1766 | eval ac_res=\$$3 |
| 1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1768 | $as_echo "$ac_res" >&6; } |
| 1769 | fi |
| 1770 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1771 | |
| 1772 | } # ac_fn_c_check_header_mongrel |
| 1773 | |
| 1774 | # ac_fn_c_try_run LINENO |
| 1775 | # ---------------------- |
| 1776 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1777 | # that executables *can* be run. |
| 1778 | ac_fn_c_try_run () |
| 1779 | { |
| 1780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1781 | if { { ac_try="$ac_link" |
| 1782 | case "(($ac_try" in |
| 1783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1784 | *) ac_try_echo=$ac_try;; |
| 1785 | esac |
| 1786 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1787 | $as_echo "$ac_try_echo"; } >&5 |
| 1788 | (eval "$ac_link") 2>&5 |
| 1789 | ac_status=$? |
| 1790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1791 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1792 | { { case "(($ac_try" in |
| 1793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1794 | *) ac_try_echo=$ac_try;; |
| 1795 | esac |
| 1796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1797 | $as_echo "$ac_try_echo"; } >&5 |
| 1798 | (eval "$ac_try") 2>&5 |
| 1799 | ac_status=$? |
| 1800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1801 | test $ac_status = 0; }; }; then : |
| 1802 | ac_retval=0 |
| 1803 | else |
| 1804 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1805 | $as_echo "$as_me: failed program was:" >&5 |
| 1806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1807 | |
| 1808 | ac_retval=$ac_status |
| 1809 | fi |
| 1810 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1811 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1812 | return $ac_retval |
| 1813 | |
| 1814 | } # ac_fn_c_try_run |
| 1815 | |
| 1816 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1817 | # ------------------------------------------------------- |
| 1818 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1819 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1820 | ac_fn_c_check_header_compile () |
| 1821 | { |
| 1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1824 | $as_echo_n "checking for $2... " >&6; } |
| 1825 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1826 | $as_echo_n "(cached) " >&6 |
| 1827 | else |
| 1828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1829 | /* end confdefs.h. */ |
| 1830 | $4 |
| 1831 | #include <$2> |
| 1832 | _ACEOF |
| 1833 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1834 | eval "$3=yes" |
| 1835 | else |
| 1836 | eval "$3=no" |
| 1837 | fi |
| 1838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1839 | fi |
| 1840 | eval ac_res=\$$3 |
| 1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1842 | $as_echo "$ac_res" >&6; } |
| 1843 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1844 | |
| 1845 | } # ac_fn_c_check_header_compile |
| 1846 | |
| 1847 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1848 | # ------------------------------------------- |
| 1849 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1850 | # variable VAR accordingly. |
| 1851 | ac_fn_c_check_type () |
| 1852 | { |
| 1853 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1855 | $as_echo_n "checking for $2... " >&6; } |
| 1856 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1857 | $as_echo_n "(cached) " >&6 |
| 1858 | else |
| 1859 | eval "$3=no" |
| 1860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1861 | /* end confdefs.h. */ |
| 1862 | $4 |
| 1863 | int |
| 1864 | main () |
| 1865 | { |
| 1866 | if (sizeof ($2)) |
| 1867 | return 0; |
| 1868 | ; |
| 1869 | return 0; |
| 1870 | } |
| 1871 | _ACEOF |
| 1872 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1874 | /* end confdefs.h. */ |
| 1875 | $4 |
| 1876 | int |
| 1877 | main () |
| 1878 | { |
| 1879 | if (sizeof (($2))) |
| 1880 | return 0; |
| 1881 | ; |
| 1882 | return 0; |
| 1883 | } |
| 1884 | _ACEOF |
| 1885 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1886 | |
| 1887 | else |
| 1888 | eval "$3=yes" |
| 1889 | fi |
| 1890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1891 | fi |
| 1892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1893 | fi |
| 1894 | eval ac_res=\$$3 |
| 1895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1896 | $as_echo "$ac_res" >&6; } |
| 1897 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1898 | |
| 1899 | } # ac_fn_c_check_type |
| 1900 | |
| 1901 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1902 | # ---------------------------------- |
| 1903 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1904 | ac_fn_c_check_func () |
| 1905 | { |
| 1906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1908 | $as_echo_n "checking for $2... " >&6; } |
| 1909 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1910 | $as_echo_n "(cached) " >&6 |
| 1911 | else |
| 1912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1913 | /* end confdefs.h. */ |
| 1914 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1916 | #define $2 innocuous_$2 |
| 1917 | |
| 1918 | /* System header to define __stub macros and hopefully few prototypes, |
| 1919 | which can conflict with char $2 (); below. |
| 1920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1921 | <limits.h> exists even on freestanding compilers. */ |
| 1922 | |
| 1923 | #ifdef __STDC__ |
| 1924 | # include <limits.h> |
| 1925 | #else |
| 1926 | # include <assert.h> |
| 1927 | #endif |
| 1928 | |
| 1929 | #undef $2 |
| 1930 | |
| 1931 | /* Override any GCC internal prototype to avoid an error. |
| 1932 | Use char because int might match the return type of a GCC |
| 1933 | builtin and then its argument prototype would still apply. */ |
| 1934 | #ifdef __cplusplus |
| 1935 | extern "C" |
| 1936 | #endif |
| 1937 | char $2 (); |
| 1938 | /* The GNU C library defines this for functions which it implements |
| 1939 | to always fail with ENOSYS. Some functions are actually named |
| 1940 | something starting with __ and the normal name is an alias. */ |
| 1941 | #if defined __stub_$2 || defined __stub___$2 |
| 1942 | choke me |
| 1943 | #endif |
| 1944 | |
| 1945 | int |
| 1946 | main () |
| 1947 | { |
| 1948 | return $2 (); |
| 1949 | ; |
| 1950 | return 0; |
| 1951 | } |
| 1952 | _ACEOF |
| 1953 | if ac_fn_c_try_link "$LINENO"; then : |
| 1954 | eval "$3=yes" |
| 1955 | else |
| 1956 | eval "$3=no" |
| 1957 | fi |
| 1958 | rm -f core conftest.err conftest.$ac_objext \ |
| 1959 | conftest$ac_exeext conftest.$ac_ext |
| 1960 | fi |
| 1961 | eval ac_res=\$$3 |
| 1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1963 | $as_echo "$ac_res" >&6; } |
| 1964 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1965 | |
| 1966 | } # ac_fn_c_check_func |
| 1967 | |
| 1968 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1969 | # -------------------------------------------- |
| 1970 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1971 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1972 | # computed |
| 1973 | ac_fn_c_compute_int () |
| 1974 | { |
| 1975 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1976 | if test "$cross_compiling" = yes; then |
| 1977 | # Depending upon the size, compute the lo and hi bounds. |
| 1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1979 | /* end confdefs.h. */ |
| 1980 | $4 |
| 1981 | int |
| 1982 | main () |
| 1983 | { |
| 1984 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1985 | test_array [0] = 0 |
| 1986 | |
| 1987 | ; |
| 1988 | return 0; |
| 1989 | } |
| 1990 | _ACEOF |
| 1991 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1992 | ac_lo=0 ac_mid=0 |
| 1993 | while :; do |
| 1994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1995 | /* end confdefs.h. */ |
| 1996 | $4 |
| 1997 | int |
| 1998 | main () |
| 1999 | { |
| 2000 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2001 | test_array [0] = 0 |
| 2002 | |
| 2003 | ; |
| 2004 | return 0; |
| 2005 | } |
| 2006 | _ACEOF |
| 2007 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2008 | ac_hi=$ac_mid; break |
| 2009 | else |
| 2010 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2011 | if test $ac_lo -le $ac_mid; then |
| 2012 | ac_lo= ac_hi= |
| 2013 | break |
| 2014 | fi |
| 2015 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2016 | fi |
| 2017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2018 | done |
| 2019 | else |
| 2020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2021 | /* end confdefs.h. */ |
| 2022 | $4 |
| 2023 | int |
| 2024 | main () |
| 2025 | { |
| 2026 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2027 | test_array [0] = 0 |
| 2028 | |
| 2029 | ; |
| 2030 | return 0; |
| 2031 | } |
| 2032 | _ACEOF |
| 2033 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2034 | ac_hi=-1 ac_mid=-1 |
| 2035 | while :; do |
| 2036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2037 | /* end confdefs.h. */ |
| 2038 | $4 |
| 2039 | int |
| 2040 | main () |
| 2041 | { |
| 2042 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2043 | test_array [0] = 0 |
| 2044 | |
| 2045 | ; |
| 2046 | return 0; |
| 2047 | } |
| 2048 | _ACEOF |
| 2049 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2050 | ac_lo=$ac_mid; break |
| 2051 | else |
| 2052 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2053 | if test $ac_mid -le $ac_hi; then |
| 2054 | ac_lo= ac_hi= |
| 2055 | break |
| 2056 | fi |
| 2057 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2058 | fi |
| 2059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2060 | done |
| 2061 | else |
| 2062 | ac_lo= ac_hi= |
| 2063 | fi |
| 2064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2065 | fi |
| 2066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2067 | # Binary search between lo and hi bounds. |
| 2068 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2069 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2071 | /* end confdefs.h. */ |
| 2072 | $4 |
| 2073 | int |
| 2074 | main () |
| 2075 | { |
| 2076 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2077 | test_array [0] = 0 |
| 2078 | |
| 2079 | ; |
| 2080 | return 0; |
| 2081 | } |
| 2082 | _ACEOF |
| 2083 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2084 | ac_hi=$ac_mid |
| 2085 | else |
| 2086 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2087 | fi |
| 2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2089 | done |
| 2090 | case $ac_lo in #(( |
| 2091 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2092 | '') ac_retval=1 ;; |
| 2093 | esac |
| 2094 | else |
| 2095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2096 | /* end confdefs.h. */ |
| 2097 | $4 |
| 2098 | static long int longval () { return $2; } |
| 2099 | static unsigned long int ulongval () { return $2; } |
| 2100 | #include <stdio.h> |
| 2101 | #include <stdlib.h> |
| 2102 | int |
| 2103 | main () |
| 2104 | { |
| 2105 | |
| 2106 | FILE *f = fopen ("conftest.val", "w"); |
| 2107 | if (! f) |
| 2108 | return 1; |
| 2109 | if (($2) < 0) |
| 2110 | { |
| 2111 | long int i = longval (); |
| 2112 | if (i != ($2)) |
| 2113 | return 1; |
| 2114 | fprintf (f, "%ld", i); |
| 2115 | } |
| 2116 | else |
| 2117 | { |
| 2118 | unsigned long int i = ulongval (); |
| 2119 | if (i != ($2)) |
| 2120 | return 1; |
| 2121 | fprintf (f, "%lu", i); |
| 2122 | } |
| 2123 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2124 | on some platforms. */ |
| 2125 | return ferror (f) || fclose (f) != 0; |
| 2126 | |
| 2127 | ; |
| 2128 | return 0; |
| 2129 | } |
| 2130 | _ACEOF |
| 2131 | if ac_fn_c_try_run "$LINENO"; then : |
| 2132 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2133 | else |
| 2134 | ac_retval=1 |
| 2135 | fi |
| 2136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2137 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2138 | rm -f conftest.val |
| 2139 | |
| 2140 | fi |
| 2141 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2142 | return $ac_retval |
| 2143 | |
| 2144 | } # ac_fn_c_compute_int |
| 2145 | |
| 2146 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2147 | # ---------------------------------------------------- |
| 2148 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2149 | # INCLUDES, setting cache variable VAR accordingly. |
| 2150 | ac_fn_c_check_member () |
| 2151 | { |
| 2152 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2154 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2155 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2156 | $as_echo_n "(cached) " >&6 |
| 2157 | else |
| 2158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2159 | /* end confdefs.h. */ |
| 2160 | $5 |
| 2161 | int |
| 2162 | main () |
| 2163 | { |
| 2164 | static $2 ac_aggr; |
| 2165 | if (ac_aggr.$3) |
| 2166 | return 0; |
| 2167 | ; |
| 2168 | return 0; |
| 2169 | } |
| 2170 | _ACEOF |
| 2171 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2172 | eval "$4=yes" |
| 2173 | else |
| 2174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2175 | /* end confdefs.h. */ |
| 2176 | $5 |
| 2177 | int |
| 2178 | main () |
| 2179 | { |
| 2180 | static $2 ac_aggr; |
| 2181 | if (sizeof ac_aggr.$3) |
| 2182 | return 0; |
| 2183 | ; |
| 2184 | return 0; |
| 2185 | } |
| 2186 | _ACEOF |
| 2187 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2188 | eval "$4=yes" |
| 2189 | else |
| 2190 | eval "$4=no" |
| 2191 | fi |
| 2192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2193 | fi |
| 2194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2195 | fi |
| 2196 | eval ac_res=\$$4 |
| 2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2198 | $as_echo "$ac_res" >&6; } |
| 2199 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2200 | |
| 2201 | } # ac_fn_c_check_member |
| 2202 | |
| 2203 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2204 | # ------------------------------------ |
| 2205 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2206 | ac_fn_c_check_decl () |
| 2207 | { |
| 2208 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2210 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2211 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2212 | $as_echo_n "(cached) " >&6 |
| 2213 | else |
| 2214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2215 | /* end confdefs.h. */ |
| 2216 | $4 |
| 2217 | int |
| 2218 | main () |
| 2219 | { |
| 2220 | #ifndef $2 |
| 2221 | (void) $2; |
| 2222 | #endif |
| 2223 | |
| 2224 | ; |
| 2225 | return 0; |
| 2226 | } |
| 2227 | _ACEOF |
| 2228 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2229 | eval "$3=yes" |
| 2230 | else |
| 2231 | eval "$3=no" |
| 2232 | fi |
| 2233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2234 | fi |
| 2235 | eval ac_res=\$$3 |
| 2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2237 | $as_echo "$ac_res" >&6; } |
| 2238 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2239 | |
| 2240 | } # ac_fn_c_check_decl |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2241 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2242 | This file contains any messages produced by compilers while |
| 2243 | running configure, to aid debugging if configure makes a mistake. |
| 2244 | |
| 2245 | It was created by $as_me, which was |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2246 | generated by GNU Autoconf 2.64. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2247 | |
| 2248 | $ $0 $@ |
| 2249 | |
| 2250 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2251 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2252 | { |
| 2253 | cat <<_ASUNAME |
| 2254 | ## --------- ## |
| 2255 | ## Platform. ## |
| 2256 | ## --------- ## |
| 2257 | |
| 2258 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2259 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2260 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2261 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2262 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2263 | |
| 2264 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2265 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2266 | |
| 2267 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2268 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2269 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2270 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2271 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2272 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2273 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2274 | |
| 2275 | _ASUNAME |
| 2276 | |
| 2277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2278 | for as_dir in $PATH |
| 2279 | do |
| 2280 | IFS=$as_save_IFS |
| 2281 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2282 | $as_echo "PATH: $as_dir" |
| 2283 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2284 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2285 | |
| 2286 | } >&5 |
| 2287 | |
| 2288 | cat >&5 <<_ACEOF |
| 2289 | |
| 2290 | |
| 2291 | ## ----------- ## |
| 2292 | ## Core tests. ## |
| 2293 | ## ----------- ## |
| 2294 | |
| 2295 | _ACEOF |
| 2296 | |
| 2297 | |
| 2298 | # Keep a trace of the command line. |
| 2299 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2300 | # Strip out --silent because we don't want to record it for future runs. |
| 2301 | # Also quote any args containing shell meta-characters. |
| 2302 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2303 | ac_configure_args= |
| 2304 | ac_configure_args0= |
| 2305 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2306 | ac_must_keep_next=false |
| 2307 | for ac_pass in 1 2 |
| 2308 | do |
| 2309 | for ac_arg |
| 2310 | do |
| 2311 | case $ac_arg in |
| 2312 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2313 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2314 | | -silent | --silent | --silen | --sile | --sil) |
| 2315 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2316 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2317 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2318 | esac |
| 2319 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2320 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2321 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2322 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2323 | if test $ac_must_keep_next = true; then |
| 2324 | ac_must_keep_next=false # Got value, back to normal. |
| 2325 | else |
| 2326 | case $ac_arg in |
| 2327 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2328 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2329 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2330 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2331 | case "$ac_configure_args0 " in |
| 2332 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2333 | esac |
| 2334 | ;; |
| 2335 | -* ) ac_must_keep_next=true ;; |
| 2336 | esac |
| 2337 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2338 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2339 | ;; |
| 2340 | esac |
| 2341 | done |
| 2342 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2343 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2344 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2345 | |
| 2346 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2347 | # config.log. We remove comments because anyway the quotes in there |
| 2348 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2349 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2350 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2351 | trap 'exit_status=$? |
| 2352 | # Save into config.log some information that might help in debugging. |
| 2353 | { |
| 2354 | echo |
| 2355 | |
| 2356 | cat <<\_ASBOX |
| 2357 | ## ---------------- ## |
| 2358 | ## Cache variables. ## |
| 2359 | ## ---------------- ## |
| 2360 | _ASBOX |
| 2361 | echo |
| 2362 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2363 | ( |
| 2364 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2365 | eval ac_val=\$$ac_var |
| 2366 | case $ac_val in #( |
| 2367 | *${as_nl}*) |
| 2368 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2369 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2370 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2371 | esac |
| 2372 | case $ac_var in #( |
| 2373 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2374 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2375 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2376 | esac ;; |
| 2377 | esac |
| 2378 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2379 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2380 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2381 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2382 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2383 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2384 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2385 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2386 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2387 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2388 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2389 | esac | |
| 2390 | sort |
| 2391 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2392 | echo |
| 2393 | |
| 2394 | cat <<\_ASBOX |
| 2395 | ## ----------------- ## |
| 2396 | ## Output variables. ## |
| 2397 | ## ----------------- ## |
| 2398 | _ASBOX |
| 2399 | echo |
| 2400 | for ac_var in $ac_subst_vars |
| 2401 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2402 | eval ac_val=\$$ac_var |
| 2403 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2404 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2405 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2406 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2407 | done | sort |
| 2408 | echo |
| 2409 | |
| 2410 | if test -n "$ac_subst_files"; then |
| 2411 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2412 | ## ------------------- ## |
| 2413 | ## File substitutions. ## |
| 2414 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2415 | _ASBOX |
| 2416 | echo |
| 2417 | for ac_var in $ac_subst_files |
| 2418 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2419 | eval ac_val=\$$ac_var |
| 2420 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2421 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2422 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2423 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2424 | done | sort |
| 2425 | echo |
| 2426 | fi |
| 2427 | |
| 2428 | if test -s confdefs.h; then |
| 2429 | cat <<\_ASBOX |
| 2430 | ## ----------- ## |
| 2431 | ## confdefs.h. ## |
| 2432 | ## ----------- ## |
| 2433 | _ASBOX |
| 2434 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2435 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2436 | echo |
| 2437 | fi |
| 2438 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2439 | $as_echo "$as_me: caught signal $ac_signal" |
| 2440 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2441 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2442 | rm -f core *.core core.conftest.* && |
| 2443 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2444 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2445 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2446 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2447 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2448 | done |
| 2449 | ac_signal=0 |
| 2450 | |
| 2451 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2452 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2453 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2454 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2455 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2456 | # Predefined preprocessor variables. |
| 2457 | |
| 2458 | cat >>confdefs.h <<_ACEOF |
| 2459 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2460 | _ACEOF |
| 2461 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2462 | cat >>confdefs.h <<_ACEOF |
| 2463 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2464 | _ACEOF |
| 2465 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2466 | cat >>confdefs.h <<_ACEOF |
| 2467 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2468 | _ACEOF |
| 2469 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2470 | cat >>confdefs.h <<_ACEOF |
| 2471 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2472 | _ACEOF |
| 2473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2474 | cat >>confdefs.h <<_ACEOF |
| 2475 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2476 | _ACEOF |
| 2477 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2478 | cat >>confdefs.h <<_ACEOF |
| 2479 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2480 | _ACEOF |
| 2481 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2482 | |
| 2483 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2484 | # Prefer an explicitly selected file to automatically selected ones. |
| 2485 | ac_site_file1=NONE |
| 2486 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2487 | if test -n "$CONFIG_SITE"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2488 | ac_site_file1=$CONFIG_SITE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2489 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2490 | ac_site_file1=$prefix/share/config.site |
| 2491 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2492 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2493 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2494 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2495 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2496 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2497 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2498 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2499 | if test -r "$ac_site_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2501 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2502 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2503 | . "$ac_site_file" |
| 2504 | fi |
| 2505 | done |
| 2506 | |
| 2507 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2508 | # Some versions of bash will fail to source /dev/null (special |
| 2509 | # files actually), so we avoid doing that. |
| 2510 | if test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2512 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2513 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2514 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2515 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2516 | esac |
| 2517 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2518 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2520 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2521 | >$cache_file |
| 2522 | fi |
| 2523 | |
| 2524 | # Check that the precious variables saved in the cache have kept the same |
| 2525 | # value. |
| 2526 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2527 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2528 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2529 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2530 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2531 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2532 | case $ac_old_set,$ac_new_set in |
| 2533 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2535 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2536 | ac_cache_corrupted=: ;; |
| 2537 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2539 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2540 | ac_cache_corrupted=: ;; |
| 2541 | ,);; |
| 2542 | *) |
| 2543 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2544 | # differences in whitespace do not lead to failure. |
| 2545 | ac_old_val_w=`echo x $ac_old_val` |
| 2546 | ac_new_val_w=`echo x $ac_new_val` |
| 2547 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2549 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2550 | ac_cache_corrupted=: |
| 2551 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2553 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2554 | eval $ac_var=\$ac_old_val |
| 2555 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2557 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2559 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2560 | fi;; |
| 2561 | esac |
| 2562 | # Pass precious variables to config.status. |
| 2563 | if test "$ac_new_set" = set; then |
| 2564 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2565 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2566 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2567 | esac |
| 2568 | case " $ac_configure_args " in |
| 2569 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2570 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2571 | esac |
| 2572 | fi |
| 2573 | done |
| 2574 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2578 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2579 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2580 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2581 | ## -------------------- ## |
| 2582 | ## Main body of script. ## |
| 2583 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2584 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2585 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2586 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2590 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2591 | |
| 2592 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2593 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2594 | for ac_dir in config "$srcdir"/config; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2595 | for ac_t in install-sh install.sh shtool; do |
| 2596 | if test -f "$ac_dir/$ac_t"; then |
| 2597 | ac_aux_dir=$ac_dir |
| 2598 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2599 | break 2 |
| 2600 | fi |
| 2601 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2602 | done |
| 2603 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2604 | as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2605 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2606 | |
| 2607 | # These three variables are undocumented and unsupported, |
| 2608 | # and are intended to be withdrawn in a future Autoconf release. |
| 2609 | # They can cause serious problems if a builder's source tree is in a directory |
| 2610 | # whose full name contains unusual characters. |
| 2611 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2612 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2613 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2614 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2615 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2616 | MCONFIG=./MCONFIG |
| 2617 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2618 | BINARY_TYPE=bin |
| 2619 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2620 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2621 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2622 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2623 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2624 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2625 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2626 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2627 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2628 | E2FSPROGS_YEAR=$YEAR |
| 2629 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2630 | E2FSPROGS_YEAR=19$YEAR |
| 2631 | else |
| 2632 | E2FSPROGS_YEAR=20$YEAR |
| 2633 | fi |
| 2634 | |
| 2635 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2636 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2637 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2638 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2639 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2640 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2641 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2642 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2643 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2644 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2645 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2646 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2647 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2648 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2649 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2650 | esac |
| 2651 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2652 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2653 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2654 | |
| 2655 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2656 | |
| 2657 | case $E2FSPROGS_VERSION in |
| 2658 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2659 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2660 | ;; |
| 2661 | *) |
| 2662 | E2FSPROGS_PKGVER="$base_ver" |
| 2663 | ;; |
| 2664 | esac |
| 2665 | |
| 2666 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2668 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2670 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2671 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2672 | |
| 2673 | |
| 2674 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2675 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2676 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2677 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2678 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2679 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2681 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2682 | if test "${ac_cv_build+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2683 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2684 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2685 | ac_build_alias=$build_alias |
| 2686 | test "x$ac_build_alias" = x && |
| 2687 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2688 | test "x$ac_build_alias" = x && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2689 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2690 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2691 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2692 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2693 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2695 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2696 | case $ac_cv_build in |
| 2697 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2698 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2699 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2700 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2701 | ac_save_IFS=$IFS; IFS='-' |
| 2702 | set x $ac_cv_build |
| 2703 | shift |
| 2704 | build_cpu=$1 |
| 2705 | build_vendor=$2 |
| 2706 | shift; shift |
| 2707 | # Remember, the first character of IFS is used to create $*, |
| 2708 | # except with old shells: |
| 2709 | build_os=$* |
| 2710 | IFS=$ac_save_IFS |
| 2711 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2712 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2713 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2715 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2716 | if test "${ac_cv_host+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2717 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2718 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2719 | if test "x$host_alias" = x; then |
| 2720 | ac_cv_host=$ac_cv_build |
| 2721 | else |
| 2722 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2723 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2724 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2725 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2726 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2728 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2729 | case $ac_cv_host in |
| 2730 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2731 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2732 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2733 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2734 | ac_save_IFS=$IFS; IFS='-' |
| 2735 | set x $ac_cv_host |
| 2736 | shift |
| 2737 | host_cpu=$1 |
| 2738 | host_vendor=$2 |
| 2739 | shift; shift |
| 2740 | # Remember, the first character of IFS is used to create $*, |
| 2741 | # except with old shells: |
| 2742 | host_os=$* |
| 2743 | IFS=$ac_save_IFS |
| 2744 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2745 | |
| 2746 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2747 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2748 | ac_ext=c |
| 2749 | ac_cpp='$CPP $CPPFLAGS' |
| 2750 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2751 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2752 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2753 | if test -n "$ac_tool_prefix"; then |
| 2754 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2755 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2757 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2758 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2759 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2760 | else |
| 2761 | if test -n "$CC"; then |
| 2762 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2763 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2765 | for as_dir in $PATH |
| 2766 | do |
| 2767 | IFS=$as_save_IFS |
| 2768 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2769 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2771 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2773 | break 2 |
| 2774 | fi |
| 2775 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2776 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2777 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2778 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2779 | fi |
| 2780 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2781 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2782 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2784 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2785 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2787 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2788 | fi |
| 2789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2790 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2791 | fi |
| 2792 | if test -z "$ac_cv_prog_CC"; then |
| 2793 | ac_ct_CC=$CC |
| 2794 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2795 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2797 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2798 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2799 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2800 | else |
| 2801 | if test -n "$ac_ct_CC"; then |
| 2802 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2803 | else |
| 2804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2805 | for as_dir in $PATH |
| 2806 | do |
| 2807 | IFS=$as_save_IFS |
| 2808 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2809 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2811 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2813 | break 2 |
| 2814 | fi |
| 2815 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2816 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2817 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2818 | |
| 2819 | fi |
| 2820 | fi |
| 2821 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2822 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2824 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2825 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2827 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2828 | fi |
| 2829 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2830 | if test "x$ac_ct_CC" = x; then |
| 2831 | CC="" |
| 2832 | else |
| 2833 | case $cross_compiling:$ac_tool_warned in |
| 2834 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2836 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2837 | ac_tool_warned=yes ;; |
| 2838 | esac |
| 2839 | CC=$ac_ct_CC |
| 2840 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2841 | else |
| 2842 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2843 | fi |
| 2844 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2845 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2846 | if test -n "$ac_tool_prefix"; then |
| 2847 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2848 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2850 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2851 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2852 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2853 | else |
| 2854 | if test -n "$CC"; then |
| 2855 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2856 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2858 | for as_dir in $PATH |
| 2859 | do |
| 2860 | IFS=$as_save_IFS |
| 2861 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2862 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2863 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2864 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2866 | break 2 |
| 2867 | fi |
| 2868 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2869 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2870 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2871 | |
| 2872 | fi |
| 2873 | fi |
| 2874 | CC=$ac_cv_prog_CC |
| 2875 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2877 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2878 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2880 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2881 | fi |
| 2882 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2883 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2884 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2885 | fi |
| 2886 | if test -z "$CC"; then |
| 2887 | # Extract the first word of "cc", so it can be a program name with args. |
| 2888 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2890 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2891 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2892 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2893 | else |
| 2894 | if test -n "$CC"; then |
| 2895 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2896 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2897 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2899 | for as_dir in $PATH |
| 2900 | do |
| 2901 | IFS=$as_save_IFS |
| 2902 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2903 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2905 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2906 | ac_prog_rejected=yes |
| 2907 | continue |
| 2908 | fi |
| 2909 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2911 | break 2 |
| 2912 | fi |
| 2913 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2914 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2915 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2916 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2917 | if test $ac_prog_rejected = yes; then |
| 2918 | # We found a bogon in the path, so make sure we never use it. |
| 2919 | set dummy $ac_cv_prog_CC |
| 2920 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2921 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2922 | # We chose a different compiler from the bogus one. |
| 2923 | # However, it has the same basename, so the bogon will be chosen |
| 2924 | # first if we set CC to just the basename; use the full file name. |
| 2925 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2926 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2927 | fi |
| 2928 | fi |
| 2929 | fi |
| 2930 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2931 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2932 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2934 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2935 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2937 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2938 | fi |
| 2939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2940 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2941 | fi |
| 2942 | if test -z "$CC"; then |
| 2943 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2944 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2945 | do |
| 2946 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2947 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2949 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2950 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2951 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2952 | else |
| 2953 | if test -n "$CC"; then |
| 2954 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2955 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2957 | for as_dir in $PATH |
| 2958 | do |
| 2959 | IFS=$as_save_IFS |
| 2960 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2961 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2963 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2965 | break 2 |
| 2966 | fi |
| 2967 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2968 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2969 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2970 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2971 | fi |
| 2972 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2973 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2974 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2976 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2977 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2979 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2980 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2981 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2982 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2983 | test -n "$CC" && break |
| 2984 | done |
| 2985 | fi |
| 2986 | if test -z "$CC"; then |
| 2987 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2988 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2989 | do |
| 2990 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2991 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2993 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2994 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2995 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2996 | else |
| 2997 | if test -n "$ac_ct_CC"; then |
| 2998 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2999 | else |
| 3000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3001 | for as_dir in $PATH |
| 3002 | do |
| 3003 | IFS=$as_save_IFS |
| 3004 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3005 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3007 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3009 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3010 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3011 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3012 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3013 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3014 | |
| 3015 | fi |
| 3016 | fi |
| 3017 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3018 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3020 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3021 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3023 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3024 | fi |
| 3025 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3026 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3027 | test -n "$ac_ct_CC" && break |
| 3028 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3029 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3030 | if test "x$ac_ct_CC" = x; then |
| 3031 | CC="" |
| 3032 | else |
| 3033 | case $cross_compiling:$ac_tool_warned in |
| 3034 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3036 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3037 | ac_tool_warned=yes ;; |
| 3038 | esac |
| 3039 | CC=$ac_ct_CC |
| 3040 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3041 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3042 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3043 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3044 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3045 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3046 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3047 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3048 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3049 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3050 | |
| 3051 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3052 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3053 | set X $ac_compile |
| 3054 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3055 | for ac_option in --version -v -V -qversion; do |
| 3056 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3057 | case "(($ac_try" in |
| 3058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3059 | *) ac_try_echo=$ac_try;; |
| 3060 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3061 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3062 | $as_echo "$ac_try_echo"; } >&5 |
| 3063 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3064 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3065 | if test -s conftest.err; then |
| 3066 | sed '10a\ |
| 3067 | ... rest of stderr output deleted ... |
| 3068 | 10q' conftest.err >conftest.er1 |
| 3069 | cat conftest.er1 >&5 |
| 3070 | rm -f conftest.er1 conftest.err |
| 3071 | fi |
| 3072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3073 | test $ac_status = 0; } |
| 3074 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3075 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3077 | /* end confdefs.h. */ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3078 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3079 | int |
| 3080 | main () |
| 3081 | { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3082 | FILE *f = fopen ("conftest.out", "w"); |
| 3083 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3084 | |
| 3085 | ; |
| 3086 | return 0; |
| 3087 | } |
| 3088 | _ACEOF |
| 3089 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3090 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3091 | # Try to create an executable without -o first, disregard a.out. |
| 3092 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3093 | # of exeext. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3095 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3096 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3097 | |
| 3098 | # The possible output files: |
| 3099 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3100 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3101 | ac_rmfiles= |
| 3102 | for ac_file in $ac_files |
| 3103 | do |
| 3104 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3105 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3106 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3107 | esac |
| 3108 | done |
| 3109 | rm -f $ac_rmfiles |
| 3110 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3111 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3112 | case "(($ac_try" in |
| 3113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3114 | *) ac_try_echo=$ac_try;; |
| 3115 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3116 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3117 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3118 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3119 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3120 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3121 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3122 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3123 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3124 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3125 | # so that the user can short-circuit this test for compilers unknown to |
| 3126 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3127 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3128 | do |
| 3129 | test -f "$ac_file" || continue |
| 3130 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3131 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3132 | ;; |
| 3133 | [ab].out ) |
| 3134 | # We found the default executable, but exeext='' is most |
| 3135 | # certainly right. |
| 3136 | break;; |
| 3137 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3138 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3139 | then :; else |
| 3140 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3141 | fi |
| 3142 | # We set ac_cv_exeext here because the later test for it is not |
| 3143 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3144 | # argument, so we may need to know it at that point already. |
| 3145 | # Even if this section looks crufty: it has the advantage of |
| 3146 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3147 | break;; |
| 3148 | * ) |
| 3149 | break;; |
| 3150 | esac |
| 3151 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3152 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3154 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3155 | ac_file='' |
| 3156 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3158 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3159 | if test -z "$ac_file"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3160 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3162 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3163 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3165 | { as_fn_set_status 77 |
| 3166 | as_fn_error "C compiler cannot create executables |
| 3167 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3168 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3169 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3170 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3171 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3172 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3174 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3175 | # If not cross compiling, check that we can run a simple program. |
| 3176 | if test "$cross_compiling" != yes; then |
| 3177 | if { ac_try='./$ac_file' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3178 | { { case "(($ac_try" in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3180 | *) ac_try_echo=$ac_try;; |
| 3181 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3182 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3183 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3184 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3185 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3187 | test $ac_status = 0; }; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3188 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3189 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3190 | if test "$cross_compiling" = maybe; then |
| 3191 | cross_compiling=yes |
| 3192 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3193 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3194 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3195 | as_fn_error "cannot run C compiled programs. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3196 | If you meant to cross compile, use \`--host'. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3197 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3198 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3199 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3200 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3202 | $as_echo "yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3203 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3204 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3205 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3206 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3207 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3209 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3211 | $as_echo "$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3212 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3214 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3215 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3216 | case "(($ac_try" in |
| 3217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3218 | *) ac_try_echo=$ac_try;; |
| 3219 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3220 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3221 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3222 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3223 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3225 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3226 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3227 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3228 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3229 | # `rm'. |
| 3230 | for ac_file in conftest.exe conftest conftest.*; do |
| 3231 | test -f "$ac_file" || continue |
| 3232 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3233 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3234 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3235 | break;; |
| 3236 | * ) break;; |
| 3237 | esac |
| 3238 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3239 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3240 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3242 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3243 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3244 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3245 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3247 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3248 | |
| 3249 | rm -f conftest.$ac_ext |
| 3250 | EXEEXT=$ac_cv_exeext |
| 3251 | ac_exeext=$EXEEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3253 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3254 | if test "${ac_cv_objext+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3255 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3256 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3258 | /* end confdefs.h. */ |
| 3259 | |
| 3260 | int |
| 3261 | main () |
| 3262 | { |
| 3263 | |
| 3264 | ; |
| 3265 | return 0; |
| 3266 | } |
| 3267 | _ACEOF |
| 3268 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3269 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3270 | case "(($ac_try" in |
| 3271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3272 | *) ac_try_echo=$ac_try;; |
| 3273 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3274 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3275 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3276 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3277 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3279 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3280 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3281 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3282 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3283 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3284 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3285 | break;; |
| 3286 | esac |
| 3287 | done |
| 3288 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3289 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3291 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3292 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3293 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3294 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3295 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3296 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3297 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3298 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3300 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3301 | OBJEXT=$ac_cv_objext |
| 3302 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3304 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3305 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3306 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3307 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3309 | /* end confdefs.h. */ |
| 3310 | |
| 3311 | int |
| 3312 | main () |
| 3313 | { |
| 3314 | #ifndef __GNUC__ |
| 3315 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3316 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3317 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3318 | ; |
| 3319 | return 0; |
| 3320 | } |
| 3321 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3322 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3323 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3324 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3325 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3326 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3328 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3329 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3330 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3332 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3333 | if test $ac_compiler_gnu = yes; then |
| 3334 | GCC=yes |
| 3335 | else |
| 3336 | GCC= |
| 3337 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3338 | ac_test_CFLAGS=${CFLAGS+set} |
| 3339 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3341 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3342 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3343 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3344 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3345 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3346 | ac_c_werror_flag=yes |
| 3347 | ac_cv_prog_cc_g=no |
| 3348 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3350 | /* end confdefs.h. */ |
| 3351 | |
| 3352 | int |
| 3353 | main () |
| 3354 | { |
| 3355 | |
| 3356 | ; |
| 3357 | return 0; |
| 3358 | } |
| 3359 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3360 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3361 | ac_cv_prog_cc_g=yes |
| 3362 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3363 | CFLAGS="" |
| 3364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3365 | /* end confdefs.h. */ |
| 3366 | |
| 3367 | int |
| 3368 | main () |
| 3369 | { |
| 3370 | |
| 3371 | ; |
| 3372 | return 0; |
| 3373 | } |
| 3374 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3375 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3376 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3377 | else |
| 3378 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3379 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3381 | /* end confdefs.h. */ |
| 3382 | |
| 3383 | int |
| 3384 | main () |
| 3385 | { |
| 3386 | |
| 3387 | ; |
| 3388 | return 0; |
| 3389 | } |
| 3390 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3391 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3392 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3393 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3395 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3397 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3399 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3400 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3402 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3403 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3404 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3405 | elif test $ac_cv_prog_cc_g = yes; then |
| 3406 | if test "$GCC" = yes; then |
| 3407 | CFLAGS="-g -O2" |
| 3408 | else |
| 3409 | CFLAGS="-g" |
| 3410 | fi |
| 3411 | else |
| 3412 | if test "$GCC" = yes; then |
| 3413 | CFLAGS="-O2" |
| 3414 | else |
| 3415 | CFLAGS= |
| 3416 | fi |
| 3417 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3419 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3420 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3421 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3422 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3423 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3424 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3426 | /* end confdefs.h. */ |
| 3427 | #include <stdarg.h> |
| 3428 | #include <stdio.h> |
| 3429 | #include <sys/types.h> |
| 3430 | #include <sys/stat.h> |
| 3431 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3432 | struct buf { int x; }; |
| 3433 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3434 | static char *e (p, i) |
| 3435 | char **p; |
| 3436 | int i; |
| 3437 | { |
| 3438 | return p[i]; |
| 3439 | } |
| 3440 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3441 | { |
| 3442 | char *s; |
| 3443 | va_list v; |
| 3444 | va_start (v,p); |
| 3445 | s = g (p, va_arg (v,int)); |
| 3446 | va_end (v); |
| 3447 | return s; |
| 3448 | } |
| 3449 | |
| 3450 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3451 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3452 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3453 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3454 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3455 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3456 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3457 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3458 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3459 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3460 | inside strings and character constants. */ |
| 3461 | #define FOO(x) 'x' |
| 3462 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3463 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3464 | int test (int i, double x); |
| 3465 | struct s1 {int (*f) (int a);}; |
| 3466 | struct s2 {int (*f) (double a);}; |
| 3467 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3468 | int argc; |
| 3469 | char **argv; |
| 3470 | int |
| 3471 | main () |
| 3472 | { |
| 3473 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3474 | ; |
| 3475 | return 0; |
| 3476 | } |
| 3477 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3478 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3479 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3480 | do |
| 3481 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3482 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3483 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3484 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3485 | rm -f core conftest.err conftest.$ac_objext |
| 3486 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3487 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3488 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3489 | CC=$ac_save_CC |
| 3490 | |
| 3491 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3492 | # AC_CACHE_VAL |
| 3493 | case "x$ac_cv_prog_cc_c89" in |
| 3494 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3496 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3497 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3499 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3500 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3501 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3503 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3504 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3505 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3506 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3507 | fi |
| 3508 | |
| 3509 | ac_ext=c |
| 3510 | ac_cpp='$CPP $CPPFLAGS' |
| 3511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3514 | |
| 3515 | |
| 3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3517 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 3518 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 3519 | $as_echo_n "(cached) " >&6 |
| 3520 | else |
| 3521 | ac_check_lib_save_LIBS=$LIBS |
| 3522 | LIBS="-ldl $LIBS" |
| 3523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3524 | /* end confdefs.h. */ |
| 3525 | |
| 3526 | /* Override any GCC internal prototype to avoid an error. |
| 3527 | Use char because int might match the return type of a GCC |
| 3528 | builtin and then its argument prototype would still apply. */ |
| 3529 | #ifdef __cplusplus |
| 3530 | extern "C" |
| 3531 | #endif |
| 3532 | char dlopen (); |
| 3533 | int |
| 3534 | main () |
| 3535 | { |
| 3536 | return dlopen (); |
| 3537 | ; |
| 3538 | return 0; |
| 3539 | } |
| 3540 | _ACEOF |
| 3541 | if ac_fn_c_try_link "$LINENO"; then : |
| 3542 | ac_cv_lib_dl_dlopen=yes |
| 3543 | else |
| 3544 | ac_cv_lib_dl_dlopen=no |
| 3545 | fi |
| 3546 | rm -f core conftest.err conftest.$ac_objext \ |
| 3547 | conftest$ac_exeext conftest.$ac_ext |
| 3548 | LIBS=$ac_check_lib_save_LIBS |
| 3549 | fi |
| 3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3551 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 3552 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 3553 | DLOPEN_LIB=-ldl |
| 3554 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3555 | |
| 3556 | fi |
| 3557 | |
| 3558 | |
| 3559 | WITH_DIET_LIBC= |
| 3560 | |
| 3561 | # Check whether --with-diet-libc was given. |
| 3562 | if test "${with_diet_libc+set}" = set; then : |
| 3563 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 3564 | WITH_DIET_LIBC=yes |
| 3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 3566 | $as_echo "CC=$CC" >&6; } |
| 3567 | fi |
| 3568 | |
| 3569 | # Check whether --with-cc was given. |
| 3570 | if test "${with_cc+set}" = set; then : |
| 3571 | withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
| 3572 | fi |
| 3573 | |
| 3574 | |
| 3575 | # Check whether --with-ccopts was given. |
| 3576 | if test "${with_ccopts+set}" = set; then : |
| 3577 | withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
| 3578 | fi |
| 3579 | |
| 3580 | |
| 3581 | # Check whether --with-ldopts was given. |
| 3582 | if test "${with_ldopts+set}" = set; then : |
| 3583 | withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
| 3584 | fi |
| 3585 | |
| 3586 | ac_ext=c |
| 3587 | ac_cpp='$CPP $CPPFLAGS' |
| 3588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3591 | if test -n "$ac_tool_prefix"; then |
| 3592 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3593 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3595 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3596 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3597 | $as_echo_n "(cached) " >&6 |
| 3598 | else |
| 3599 | if test -n "$CC"; then |
| 3600 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3601 | else |
| 3602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3603 | for as_dir in $PATH |
| 3604 | do |
| 3605 | IFS=$as_save_IFS |
| 3606 | test -z "$as_dir" && as_dir=. |
| 3607 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3609 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3611 | break 2 |
| 3612 | fi |
| 3613 | done |
| 3614 | done |
| 3615 | IFS=$as_save_IFS |
| 3616 | |
| 3617 | fi |
| 3618 | fi |
| 3619 | CC=$ac_cv_prog_CC |
| 3620 | if test -n "$CC"; then |
| 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3622 | $as_echo "$CC" >&6; } |
| 3623 | else |
| 3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3625 | $as_echo "no" >&6; } |
| 3626 | fi |
| 3627 | |
| 3628 | |
| 3629 | fi |
| 3630 | if test -z "$ac_cv_prog_CC"; then |
| 3631 | ac_ct_CC=$CC |
| 3632 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3633 | set dummy gcc; ac_word=$2 |
| 3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3635 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3636 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3637 | $as_echo_n "(cached) " >&6 |
| 3638 | else |
| 3639 | if test -n "$ac_ct_CC"; then |
| 3640 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3641 | else |
| 3642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3643 | for as_dir in $PATH |
| 3644 | do |
| 3645 | IFS=$as_save_IFS |
| 3646 | test -z "$as_dir" && as_dir=. |
| 3647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3649 | ac_cv_prog_ac_ct_CC="gcc" |
| 3650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3651 | break 2 |
| 3652 | fi |
| 3653 | done |
| 3654 | done |
| 3655 | IFS=$as_save_IFS |
| 3656 | |
| 3657 | fi |
| 3658 | fi |
| 3659 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3660 | if test -n "$ac_ct_CC"; then |
| 3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3662 | $as_echo "$ac_ct_CC" >&6; } |
| 3663 | else |
| 3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3665 | $as_echo "no" >&6; } |
| 3666 | fi |
| 3667 | |
| 3668 | if test "x$ac_ct_CC" = x; then |
| 3669 | CC="" |
| 3670 | else |
| 3671 | case $cross_compiling:$ac_tool_warned in |
| 3672 | yes:) |
| 3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3674 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3675 | ac_tool_warned=yes ;; |
| 3676 | esac |
| 3677 | CC=$ac_ct_CC |
| 3678 | fi |
| 3679 | else |
| 3680 | CC="$ac_cv_prog_CC" |
| 3681 | fi |
| 3682 | |
| 3683 | if test -z "$CC"; then |
| 3684 | if test -n "$ac_tool_prefix"; then |
| 3685 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3686 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3688 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3689 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3690 | $as_echo_n "(cached) " >&6 |
| 3691 | else |
| 3692 | if test -n "$CC"; then |
| 3693 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3694 | else |
| 3695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3696 | for as_dir in $PATH |
| 3697 | do |
| 3698 | IFS=$as_save_IFS |
| 3699 | test -z "$as_dir" && as_dir=. |
| 3700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3702 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3704 | break 2 |
| 3705 | fi |
| 3706 | done |
| 3707 | done |
| 3708 | IFS=$as_save_IFS |
| 3709 | |
| 3710 | fi |
| 3711 | fi |
| 3712 | CC=$ac_cv_prog_CC |
| 3713 | if test -n "$CC"; then |
| 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3715 | $as_echo "$CC" >&6; } |
| 3716 | else |
| 3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3718 | $as_echo "no" >&6; } |
| 3719 | fi |
| 3720 | |
| 3721 | |
| 3722 | fi |
| 3723 | fi |
| 3724 | if test -z "$CC"; then |
| 3725 | # Extract the first word of "cc", so it can be a program name with args. |
| 3726 | set dummy cc; ac_word=$2 |
| 3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3728 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3729 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3730 | $as_echo_n "(cached) " >&6 |
| 3731 | else |
| 3732 | if test -n "$CC"; then |
| 3733 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3734 | else |
| 3735 | ac_prog_rejected=no |
| 3736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3737 | for as_dir in $PATH |
| 3738 | do |
| 3739 | IFS=$as_save_IFS |
| 3740 | test -z "$as_dir" && as_dir=. |
| 3741 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3743 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3744 | ac_prog_rejected=yes |
| 3745 | continue |
| 3746 | fi |
| 3747 | ac_cv_prog_CC="cc" |
| 3748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3749 | break 2 |
| 3750 | fi |
| 3751 | done |
| 3752 | done |
| 3753 | IFS=$as_save_IFS |
| 3754 | |
| 3755 | if test $ac_prog_rejected = yes; then |
| 3756 | # We found a bogon in the path, so make sure we never use it. |
| 3757 | set dummy $ac_cv_prog_CC |
| 3758 | shift |
| 3759 | if test $# != 0; then |
| 3760 | # We chose a different compiler from the bogus one. |
| 3761 | # However, it has the same basename, so the bogon will be chosen |
| 3762 | # first if we set CC to just the basename; use the full file name. |
| 3763 | shift |
| 3764 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3765 | fi |
| 3766 | fi |
| 3767 | fi |
| 3768 | fi |
| 3769 | CC=$ac_cv_prog_CC |
| 3770 | if test -n "$CC"; then |
| 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3772 | $as_echo "$CC" >&6; } |
| 3773 | else |
| 3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3775 | $as_echo "no" >&6; } |
| 3776 | fi |
| 3777 | |
| 3778 | |
| 3779 | fi |
| 3780 | if test -z "$CC"; then |
| 3781 | if test -n "$ac_tool_prefix"; then |
| 3782 | for ac_prog in cl.exe |
| 3783 | do |
| 3784 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3785 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3787 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3788 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3789 | $as_echo_n "(cached) " >&6 |
| 3790 | else |
| 3791 | if test -n "$CC"; then |
| 3792 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3793 | else |
| 3794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3795 | for as_dir in $PATH |
| 3796 | do |
| 3797 | IFS=$as_save_IFS |
| 3798 | test -z "$as_dir" && as_dir=. |
| 3799 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3801 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3803 | break 2 |
| 3804 | fi |
| 3805 | done |
| 3806 | done |
| 3807 | IFS=$as_save_IFS |
| 3808 | |
| 3809 | fi |
| 3810 | fi |
| 3811 | CC=$ac_cv_prog_CC |
| 3812 | if test -n "$CC"; then |
| 3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3814 | $as_echo "$CC" >&6; } |
| 3815 | else |
| 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3817 | $as_echo "no" >&6; } |
| 3818 | fi |
| 3819 | |
| 3820 | |
| 3821 | test -n "$CC" && break |
| 3822 | done |
| 3823 | fi |
| 3824 | if test -z "$CC"; then |
| 3825 | ac_ct_CC=$CC |
| 3826 | for ac_prog in cl.exe |
| 3827 | do |
| 3828 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3829 | set dummy $ac_prog; ac_word=$2 |
| 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3831 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3832 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3833 | $as_echo_n "(cached) " >&6 |
| 3834 | else |
| 3835 | if test -n "$ac_ct_CC"; then |
| 3836 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3837 | else |
| 3838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3839 | for as_dir in $PATH |
| 3840 | do |
| 3841 | IFS=$as_save_IFS |
| 3842 | test -z "$as_dir" && as_dir=. |
| 3843 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3845 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3847 | break 2 |
| 3848 | fi |
| 3849 | done |
| 3850 | done |
| 3851 | IFS=$as_save_IFS |
| 3852 | |
| 3853 | fi |
| 3854 | fi |
| 3855 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3856 | if test -n "$ac_ct_CC"; then |
| 3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3858 | $as_echo "$ac_ct_CC" >&6; } |
| 3859 | else |
| 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3861 | $as_echo "no" >&6; } |
| 3862 | fi |
| 3863 | |
| 3864 | |
| 3865 | test -n "$ac_ct_CC" && break |
| 3866 | done |
| 3867 | |
| 3868 | if test "x$ac_ct_CC" = x; then |
| 3869 | CC="" |
| 3870 | else |
| 3871 | case $cross_compiling:$ac_tool_warned in |
| 3872 | yes:) |
| 3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3874 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3875 | ac_tool_warned=yes ;; |
| 3876 | esac |
| 3877 | CC=$ac_ct_CC |
| 3878 | fi |
| 3879 | fi |
| 3880 | |
| 3881 | fi |
| 3882 | |
| 3883 | |
| 3884 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3885 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3886 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3887 | See \`config.log' for more details." "$LINENO" 5; } |
| 3888 | |
| 3889 | # Provide some information about the compiler. |
| 3890 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3891 | set X $ac_compile |
| 3892 | ac_compiler=$2 |
| 3893 | for ac_option in --version -v -V -qversion; do |
| 3894 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3895 | case "(($ac_try" in |
| 3896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3897 | *) ac_try_echo=$ac_try;; |
| 3898 | esac |
| 3899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3900 | $as_echo "$ac_try_echo"; } >&5 |
| 3901 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3902 | ac_status=$? |
| 3903 | if test -s conftest.err; then |
| 3904 | sed '10a\ |
| 3905 | ... rest of stderr output deleted ... |
| 3906 | 10q' conftest.err >conftest.er1 |
| 3907 | cat conftest.er1 >&5 |
| 3908 | rm -f conftest.er1 conftest.err |
| 3909 | fi |
| 3910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3911 | test $ac_status = 0; } |
| 3912 | done |
| 3913 | |
| 3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3915 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3916 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3917 | $as_echo_n "(cached) " >&6 |
| 3918 | else |
| 3919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3920 | /* end confdefs.h. */ |
| 3921 | |
| 3922 | int |
| 3923 | main () |
| 3924 | { |
| 3925 | #ifndef __GNUC__ |
| 3926 | choke me |
| 3927 | #endif |
| 3928 | |
| 3929 | ; |
| 3930 | return 0; |
| 3931 | } |
| 3932 | _ACEOF |
| 3933 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3934 | ac_compiler_gnu=yes |
| 3935 | else |
| 3936 | ac_compiler_gnu=no |
| 3937 | fi |
| 3938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3939 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3940 | |
| 3941 | fi |
| 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3943 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3944 | if test $ac_compiler_gnu = yes; then |
| 3945 | GCC=yes |
| 3946 | else |
| 3947 | GCC= |
| 3948 | fi |
| 3949 | ac_test_CFLAGS=${CFLAGS+set} |
| 3950 | ac_save_CFLAGS=$CFLAGS |
| 3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3952 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3953 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3954 | $as_echo_n "(cached) " >&6 |
| 3955 | else |
| 3956 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3957 | ac_c_werror_flag=yes |
| 3958 | ac_cv_prog_cc_g=no |
| 3959 | CFLAGS="-g" |
| 3960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3961 | /* end confdefs.h. */ |
| 3962 | |
| 3963 | int |
| 3964 | main () |
| 3965 | { |
| 3966 | |
| 3967 | ; |
| 3968 | return 0; |
| 3969 | } |
| 3970 | _ACEOF |
| 3971 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3972 | ac_cv_prog_cc_g=yes |
| 3973 | else |
| 3974 | CFLAGS="" |
| 3975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3976 | /* end confdefs.h. */ |
| 3977 | |
| 3978 | int |
| 3979 | main () |
| 3980 | { |
| 3981 | |
| 3982 | ; |
| 3983 | return 0; |
| 3984 | } |
| 3985 | _ACEOF |
| 3986 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3987 | |
| 3988 | else |
| 3989 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3990 | CFLAGS="-g" |
| 3991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3992 | /* end confdefs.h. */ |
| 3993 | |
| 3994 | int |
| 3995 | main () |
| 3996 | { |
| 3997 | |
| 3998 | ; |
| 3999 | return 0; |
| 4000 | } |
| 4001 | _ACEOF |
| 4002 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4003 | ac_cv_prog_cc_g=yes |
| 4004 | fi |
| 4005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4006 | fi |
| 4007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4008 | fi |
| 4009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4010 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4011 | fi |
| 4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4013 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4014 | if test "$ac_test_CFLAGS" = set; then |
| 4015 | CFLAGS=$ac_save_CFLAGS |
| 4016 | elif test $ac_cv_prog_cc_g = yes; then |
| 4017 | if test "$GCC" = yes; then |
| 4018 | CFLAGS="-g -O2" |
| 4019 | else |
| 4020 | CFLAGS="-g" |
| 4021 | fi |
| 4022 | else |
| 4023 | if test "$GCC" = yes; then |
| 4024 | CFLAGS="-O2" |
| 4025 | else |
| 4026 | CFLAGS= |
| 4027 | fi |
| 4028 | fi |
| 4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4030 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4031 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 4032 | $as_echo_n "(cached) " >&6 |
| 4033 | else |
| 4034 | ac_cv_prog_cc_c89=no |
| 4035 | ac_save_CC=$CC |
| 4036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4037 | /* end confdefs.h. */ |
| 4038 | #include <stdarg.h> |
| 4039 | #include <stdio.h> |
| 4040 | #include <sys/types.h> |
| 4041 | #include <sys/stat.h> |
| 4042 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4043 | struct buf { int x; }; |
| 4044 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4045 | static char *e (p, i) |
| 4046 | char **p; |
| 4047 | int i; |
| 4048 | { |
| 4049 | return p[i]; |
| 4050 | } |
| 4051 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4052 | { |
| 4053 | char *s; |
| 4054 | va_list v; |
| 4055 | va_start (v,p); |
| 4056 | s = g (p, va_arg (v,int)); |
| 4057 | va_end (v); |
| 4058 | return s; |
| 4059 | } |
| 4060 | |
| 4061 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4062 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4063 | These don't provoke an error unfortunately, instead are silently treated |
| 4064 | as 'x'. The following induces an error, until -std is added to get |
| 4065 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4066 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4067 | that's true only with -std. */ |
| 4068 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4069 | |
| 4070 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4071 | inside strings and character constants. */ |
| 4072 | #define FOO(x) 'x' |
| 4073 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4074 | |
| 4075 | int test (int i, double x); |
| 4076 | struct s1 {int (*f) (int a);}; |
| 4077 | struct s2 {int (*f) (double a);}; |
| 4078 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4079 | int argc; |
| 4080 | char **argv; |
| 4081 | int |
| 4082 | main () |
| 4083 | { |
| 4084 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4085 | ; |
| 4086 | return 0; |
| 4087 | } |
| 4088 | _ACEOF |
| 4089 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4090 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4091 | do |
| 4092 | CC="$ac_save_CC $ac_arg" |
| 4093 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4094 | ac_cv_prog_cc_c89=$ac_arg |
| 4095 | fi |
| 4096 | rm -f core conftest.err conftest.$ac_objext |
| 4097 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4098 | done |
| 4099 | rm -f conftest.$ac_ext |
| 4100 | CC=$ac_save_CC |
| 4101 | |
| 4102 | fi |
| 4103 | # AC_CACHE_VAL |
| 4104 | case "x$ac_cv_prog_cc_c89" in |
| 4105 | x) |
| 4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4107 | $as_echo "none needed" >&6; } ;; |
| 4108 | xno) |
| 4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4110 | $as_echo "unsupported" >&6; } ;; |
| 4111 | *) |
| 4112 | CC="$CC $ac_cv_prog_cc_c89" |
| 4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4114 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4115 | esac |
| 4116 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4117 | |
| 4118 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4119 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4120 | ac_ext=c |
| 4121 | ac_cpp='$CPP $CPPFLAGS' |
| 4122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4125 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4126 | ac_ext=c |
| 4127 | ac_cpp='$CPP $CPPFLAGS' |
| 4128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4132 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4133 | # On Suns, sometimes $CPP names a directory. |
| 4134 | if test -n "$CPP" && test -d "$CPP"; then |
| 4135 | CPP= |
| 4136 | fi |
| 4137 | if test -z "$CPP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4138 | if test "${ac_cv_prog_CPP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4139 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4140 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4141 | # Double quotes because CPP needs to be expanded |
| 4142 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4143 | do |
| 4144 | ac_preproc_ok=false |
| 4145 | for ac_c_preproc_warn_flag in '' yes |
| 4146 | do |
| 4147 | # Use a header file that comes with gcc, so configuring glibc |
| 4148 | # with a fresh cross-compiler works. |
| 4149 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4150 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4151 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4152 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4154 | /* end confdefs.h. */ |
| 4155 | #ifdef __STDC__ |
| 4156 | # include <limits.h> |
| 4157 | #else |
| 4158 | # include <assert.h> |
| 4159 | #endif |
| 4160 | Syntax error |
| 4161 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4162 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4163 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4164 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4165 | # Broken: fails on valid input. |
| 4166 | continue |
| 4167 | fi |
| 4168 | rm -f conftest.err conftest.$ac_ext |
| 4169 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4170 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4171 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4173 | /* end confdefs.h. */ |
| 4174 | #include <ac_nonexistent.h> |
| 4175 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4176 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4177 | # Broken: success on invalid input. |
| 4178 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4179 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4180 | # Passes both tests. |
| 4181 | ac_preproc_ok=: |
| 4182 | break |
| 4183 | fi |
| 4184 | rm -f conftest.err conftest.$ac_ext |
| 4185 | |
| 4186 | done |
| 4187 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4188 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4189 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4190 | break |
| 4191 | fi |
| 4192 | |
| 4193 | done |
| 4194 | ac_cv_prog_CPP=$CPP |
| 4195 | |
| 4196 | fi |
| 4197 | CPP=$ac_cv_prog_CPP |
| 4198 | else |
| 4199 | ac_cv_prog_CPP=$CPP |
| 4200 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4202 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4203 | ac_preproc_ok=false |
| 4204 | for ac_c_preproc_warn_flag in '' yes |
| 4205 | do |
| 4206 | # Use a header file that comes with gcc, so configuring glibc |
| 4207 | # with a fresh cross-compiler works. |
| 4208 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4209 | # <limits.h> exists even on freestanding compilers. |
| 4210 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4211 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4213 | /* end confdefs.h. */ |
| 4214 | #ifdef __STDC__ |
| 4215 | # include <limits.h> |
| 4216 | #else |
| 4217 | # include <assert.h> |
| 4218 | #endif |
| 4219 | Syntax error |
| 4220 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4221 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4222 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4223 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4224 | # Broken: fails on valid input. |
| 4225 | continue |
| 4226 | fi |
| 4227 | rm -f conftest.err conftest.$ac_ext |
| 4228 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4229 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4230 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4232 | /* end confdefs.h. */ |
| 4233 | #include <ac_nonexistent.h> |
| 4234 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4235 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4236 | # Broken: success on invalid input. |
| 4237 | continue |
| 4238 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4239 | # Passes both tests. |
| 4240 | ac_preproc_ok=: |
| 4241 | break |
| 4242 | fi |
| 4243 | rm -f conftest.err conftest.$ac_ext |
| 4244 | |
| 4245 | done |
| 4246 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4247 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4248 | if $ac_preproc_ok; then : |
| 4249 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4250 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4251 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4252 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4253 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4254 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4255 | fi |
| 4256 | |
| 4257 | ac_ext=c |
| 4258 | ac_cpp='$CPP $CPPFLAGS' |
| 4259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4262 | |
| 4263 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4265 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4266 | if test "${ac_cv_path_GREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4267 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4268 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4269 | if test -z "$GREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4270 | ac_path_GREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4271 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4273 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4274 | do |
| 4275 | IFS=$as_save_IFS |
| 4276 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4277 | for ac_prog in grep ggrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4278 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4279 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4280 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4281 | # Check for GNU ac_path_GREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4282 | # Check for GNU $ac_path_GREP |
| 4283 | case `"$ac_path_GREP" --version 2>&1` in |
| 4284 | *GNU*) |
| 4285 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4286 | *) |
| 4287 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4288 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4289 | while : |
| 4290 | do |
| 4291 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4292 | mv "conftest.tmp" "conftest.in" |
| 4293 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4294 | $as_echo 'GREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4295 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4296 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4297 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4298 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4299 | # Best one so far, save it but keep looking for a better one |
| 4300 | ac_cv_path_GREP="$ac_path_GREP" |
| 4301 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4302 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4303 | # 10*(2^10) chars as input seems more than enough |
| 4304 | test $ac_count -gt 10 && break |
| 4305 | done |
| 4306 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4307 | esac |
| 4308 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4309 | $ac_path_GREP_found && break 3 |
| 4310 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4311 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4312 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4313 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4314 | if test -z "$ac_cv_path_GREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4315 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4316 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4317 | else |
| 4318 | ac_cv_path_GREP=$GREP |
| 4319 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4320 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4321 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4323 | $as_echo "$ac_cv_path_GREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4324 | GREP="$ac_cv_path_GREP" |
| 4325 | |
| 4326 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4328 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4329 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4330 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4331 | else |
| 4332 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4333 | then ac_cv_path_EGREP="$GREP -E" |
| 4334 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4335 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4336 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4337 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4339 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4340 | do |
| 4341 | IFS=$as_save_IFS |
| 4342 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4343 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4345 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4346 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4347 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4348 | # Check for GNU $ac_path_EGREP |
| 4349 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4350 | *GNU*) |
| 4351 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4352 | *) |
| 4353 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4354 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4355 | while : |
| 4356 | do |
| 4357 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4358 | mv "conftest.tmp" "conftest.in" |
| 4359 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4360 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4361 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4362 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4363 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4364 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4365 | # Best one so far, save it but keep looking for a better one |
| 4366 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4367 | ac_path_EGREP_max=$ac_count |
| 4368 | fi |
| 4369 | # 10*(2^10) chars as input seems more than enough |
| 4370 | test $ac_count -gt 10 && break |
| 4371 | done |
| 4372 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4373 | esac |
| 4374 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4375 | $ac_path_EGREP_found && break 3 |
| 4376 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4377 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4378 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4379 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4380 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4381 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4382 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4383 | else |
| 4384 | ac_cv_path_EGREP=$EGREP |
| 4385 | fi |
| 4386 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4387 | fi |
| 4388 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4390 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4391 | EGREP="$ac_cv_path_EGREP" |
| 4392 | |
| 4393 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4395 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4396 | if test "${ac_cv_header_stdc+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4397 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4398 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4400 | /* end confdefs.h. */ |
| 4401 | #include <stdlib.h> |
| 4402 | #include <stdarg.h> |
| 4403 | #include <string.h> |
| 4404 | #include <float.h> |
| 4405 | |
| 4406 | int |
| 4407 | main () |
| 4408 | { |
| 4409 | |
| 4410 | ; |
| 4411 | return 0; |
| 4412 | } |
| 4413 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4414 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4415 | ac_cv_header_stdc=yes |
| 4416 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4417 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4418 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4420 | |
| 4421 | if test $ac_cv_header_stdc = yes; then |
| 4422 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4424 | /* end confdefs.h. */ |
| 4425 | #include <string.h> |
| 4426 | |
| 4427 | _ACEOF |
| 4428 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4429 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4430 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4431 | else |
| 4432 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4433 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4434 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4435 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4436 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4437 | |
| 4438 | if test $ac_cv_header_stdc = yes; then |
| 4439 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4441 | /* end confdefs.h. */ |
| 4442 | #include <stdlib.h> |
| 4443 | |
| 4444 | _ACEOF |
| 4445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4446 | $EGREP "free" >/dev/null 2>&1; then : |
| 4447 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4448 | else |
| 4449 | ac_cv_header_stdc=no |
| 4450 | fi |
| 4451 | rm -f conftest* |
| 4452 | |
| 4453 | fi |
| 4454 | |
| 4455 | if test $ac_cv_header_stdc = yes; then |
| 4456 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4457 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4458 | : |
| 4459 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4461 | /* end confdefs.h. */ |
| 4462 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4463 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4464 | #if ((' ' & 0x0FF) == 0x020) |
| 4465 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4466 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4467 | #else |
| 4468 | # define ISLOWER(c) \ |
| 4469 | (('a' <= (c) && (c) <= 'i') \ |
| 4470 | || ('j' <= (c) && (c) <= 'r') \ |
| 4471 | || ('s' <= (c) && (c) <= 'z')) |
| 4472 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4473 | #endif |
| 4474 | |
| 4475 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4476 | int |
| 4477 | main () |
| 4478 | { |
| 4479 | int i; |
| 4480 | for (i = 0; i < 256; i++) |
| 4481 | if (XOR (islower (i), ISLOWER (i)) |
| 4482 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4483 | return 2; |
| 4484 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4485 | } |
| 4486 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4487 | if ac_fn_c_try_run "$LINENO"; then : |
| 4488 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4489 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4490 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4491 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4492 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4493 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4494 | fi |
| 4495 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4496 | fi |
| 4497 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4499 | $as_echo "$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4500 | if test $ac_cv_header_stdc = yes; then |
| 4501 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4502 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4503 | |
| 4504 | fi |
| 4505 | |
| 4506 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4507 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4508 | inttypes.h stdint.h unistd.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4509 | do : |
| 4510 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4511 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4512 | " |
| 4513 | eval as_val=\$$as_ac_Header |
| 4514 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4515 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4516 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4517 | _ACEOF |
| 4518 | |
| 4519 | fi |
| 4520 | |
| 4521 | done |
| 4522 | |
| 4523 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4524 | ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
| 4525 | if test "x$ac_cv_header_linux_fs_h" = x""yes; then : |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4526 | linux_headers=yes |
| 4527 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4528 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4529 | fi |
| 4530 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4531 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 4532 | if test "$linux_headers" != yes; then |
| 4533 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4534 | fi |
| 4535 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4537 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4538 | if test "$GCC" = yes |
| 4539 | then |
| 4540 | case "$host_cpu" in |
| 4541 | alpha) addcflags="-mieee" ;; |
| 4542 | esac |
| 4543 | fi |
| 4544 | if test "x$addcflags" != x |
| 4545 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4547 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4548 | CFLAGS="$addcflags $CFLAGS" |
| 4549 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4551 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4552 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4553 | LIB_EXT=.a |
| 4554 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4555 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4556 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4557 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4558 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4559 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4560 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4561 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4562 | fi |
| 4563 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4564 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4565 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4566 | then |
| 4567 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4569 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4570 | else |
| 4571 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4573 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4574 | fi |
| 4575 | |
| 4576 | else |
| 4577 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4579 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4580 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4581 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4582 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4583 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame^] | 4584 | # Check whether --enable-symlink-install was given. |
| 4585 | if test "${enable_symlink_install+set}" = set; then : |
| 4586 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4587 | then |
| 4588 | LINK_INSTALL_FLAGS=-f |
| 4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4590 | $as_echo "Disabling symlinks for install" >&6; } |
| 4591 | else |
| 4592 | LINK_INSTALL_FLAGS=-sf |
| 4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4594 | $as_echo "Enabling symlinks for install" >&6; } |
| 4595 | fi |
| 4596 | |
| 4597 | else |
| 4598 | LINK_INSTALL_FLAGS=-f |
| 4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4600 | $as_echo "Disabling symlinks for install" >&6; } |
| 4601 | |
| 4602 | fi |
| 4603 | |
| 4604 | |
| 4605 | # Check whether --enable-symlink-build was given. |
| 4606 | if test "${enable_symlink_build+set}" = set; then : |
| 4607 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4608 | then |
| 4609 | LINK_BUILD_FLAGS= |
| 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4611 | $as_echo "Disabling symlinks for build" >&6; } |
| 4612 | else |
| 4613 | LINK_BUILD_FLAGS=-s |
| 4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4615 | $as_echo "Enabling symlinks for build" >&6; } |
| 4616 | fi |
| 4617 | |
| 4618 | else |
| 4619 | LINK_BUILD_FLAGS= |
| 4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4621 | $as_echo "Disabling symlinks for build" >&6; } |
| 4622 | |
| 4623 | fi |
| 4624 | |
| 4625 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4626 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4627 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4628 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4629 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4631 | $as_echo "Disabling verbose make commands" >&6; } |
| 4632 | E=@echo |
| 4633 | Q=@ |
| 4634 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4636 | $as_echo "Enabling verbose make commands" >&6; } |
| 4637 | E=@\\# |
| 4638 | Q= |
| 4639 | fi |
| 4640 | |
| 4641 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4643 | $as_echo "Disabling verbose make commands" >&6; } |
| 4644 | E=@echo |
| 4645 | Q=@ |
| 4646 | |
| 4647 | fi |
| 4648 | |
| 4649 | |
| 4650 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4651 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4652 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4653 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4654 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4656 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4657 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4658 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4659 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4661 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4663 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4664 | fi |
| 4665 | |
| 4666 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4668 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4669 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4670 | fi |
| 4671 | |
| 4672 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4673 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4674 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4675 | then |
| 4676 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4678 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4679 | else |
| 4680 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4681 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4682 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4684 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4685 | fi |
| 4686 | |
| 4687 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4688 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4689 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4690 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4692 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4693 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4694 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4695 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4696 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4697 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4698 | LDFLAG_DYNAMIC= |
| 4699 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4700 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4701 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4702 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4703 | then |
| 4704 | ELF_CMT=# |
| 4705 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4707 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4708 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4709 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4710 | ELF_CMT= |
| 4711 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4712 | case "$host_os" in |
| 4713 | solaris2.*) |
| 4714 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4715 | ;; |
| 4716 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4717 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4718 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4719 | PRIVATE_LIBS_CMT=# |
| 4720 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4722 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4723 | fi |
| 4724 | |
| 4725 | else |
| 4726 | MAKEFILE_ELF=/dev/null |
| 4727 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4729 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4730 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4731 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4732 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4733 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4734 | |
| 4735 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4736 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4737 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4738 | then |
| 4739 | BSDLIB_CMT=# |
| 4740 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4742 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4743 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4744 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4745 | BSDLIB_CMT= |
| 4746 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4747 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4748 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4749 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4750 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4751 | LIB_EXT=.dylib |
| 4752 | ;; |
| 4753 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4755 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4756 | fi |
| 4757 | |
| 4758 | else |
| 4759 | MAKEFILE_BSDLIB=/dev/null |
| 4760 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4762 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4763 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4764 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4765 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4766 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4767 | |
| 4768 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4769 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4770 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4771 | then |
| 4772 | PROFILE_CMT=# |
| 4773 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4775 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4776 | else |
| 4777 | PROFILE_CMT= |
| 4778 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4779 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4781 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4782 | fi |
| 4783 | |
| 4784 | else |
| 4785 | PROFILE_CMT=# |
| 4786 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4788 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4790 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4791 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4792 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4793 | |
| 4794 | # Check whether --enable-checker was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4795 | if test "${enable_checker+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4796 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4797 | then |
| 4798 | CHECKER_CMT=# |
| 4799 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4801 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4802 | else |
| 4803 | CHECKER_CMT= |
| 4804 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4806 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4807 | fi |
| 4808 | |
| 4809 | else |
| 4810 | CHECKER_CMT=# |
| 4811 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4813 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4814 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4815 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4816 | |
| 4817 | |
| 4818 | |
| 4819 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4820 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4821 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4822 | |
| 4823 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4824 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4825 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4826 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4827 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4829 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4830 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4831 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4832 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4834 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4835 | fi |
| 4836 | |
| 4837 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4839 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4840 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4841 | fi |
| 4842 | |
| 4843 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4844 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4845 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4846 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4848 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4849 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4850 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4851 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4853 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4854 | fi |
| 4855 | |
| 4856 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4858 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4860 | fi |
| 4861 | |
| 4862 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4863 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4864 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4865 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4867 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4868 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4869 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4870 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4871 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4872 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4874 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4875 | fi |
| 4876 | |
| 4877 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4879 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4880 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4881 | |
| 4882 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4883 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4884 | fi |
| 4885 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4886 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4887 | |
| 4888 | |
| 4889 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4890 | if test -n "$ac_tool_prefix"; then |
| 4891 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4892 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4894 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4895 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4896 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4897 | else |
| 4898 | case $PKG_CONFIG in |
| 4899 | [\\/]* | ?:[\\/]*) |
| 4900 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4901 | ;; |
| 4902 | *) |
| 4903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4904 | for as_dir in $PATH |
| 4905 | do |
| 4906 | IFS=$as_save_IFS |
| 4907 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4908 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4910 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4912 | break 2 |
| 4913 | fi |
| 4914 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4915 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4916 | IFS=$as_save_IFS |
| 4917 | |
| 4918 | ;; |
| 4919 | esac |
| 4920 | fi |
| 4921 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4922 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4924 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4925 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4927 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4928 | fi |
| 4929 | |
| 4930 | |
| 4931 | fi |
| 4932 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4933 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4934 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4935 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4937 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4938 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4939 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4940 | else |
| 4941 | case $ac_pt_PKG_CONFIG in |
| 4942 | [\\/]* | ?:[\\/]*) |
| 4943 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4944 | ;; |
| 4945 | *) |
| 4946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4947 | for as_dir in $PATH |
| 4948 | do |
| 4949 | IFS=$as_save_IFS |
| 4950 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4951 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4953 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4955 | break 2 |
| 4956 | fi |
| 4957 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4958 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4959 | IFS=$as_save_IFS |
| 4960 | |
| 4961 | ;; |
| 4962 | esac |
| 4963 | fi |
| 4964 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4965 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4967 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4968 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4970 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4971 | fi |
| 4972 | |
| 4973 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4974 | PKG_CONFIG="" |
| 4975 | else |
| 4976 | case $cross_compiling:$ac_tool_warned in |
| 4977 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4979 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4980 | ac_tool_warned=yes ;; |
| 4981 | esac |
| 4982 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4983 | fi |
| 4984 | else |
| 4985 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4986 | fi |
| 4987 | |
| 4988 | fi |
| 4989 | if test -n "$PKG_CONFIG"; then |
| 4990 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4992 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4993 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4995 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4996 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4998 | $as_echo "no" >&6; } |
| 4999 | PKG_CONFIG="" |
| 5000 | fi |
| 5001 | |
| 5002 | fi |
| 5003 | LIBUUID= |
| 5004 | DEPLIBUUID= |
| 5005 | STATIC_LIBUUID= |
| 5006 | DEPSTATIC_LIBUUID= |
| 5007 | PROFILED_LIBUUID= |
| 5008 | DEPPROFILED_LIBUUID= |
| 5009 | UUID_CMT= |
| 5010 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5011 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5012 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 5013 | then |
| 5014 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5015 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5016 | fi |
| 5017 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5019 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5020 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5021 | $as_echo_n "(cached) " >&6 |
| 5022 | else |
| 5023 | ac_check_lib_save_LIBS=$LIBS |
| 5024 | LIBS="-luuid $LIBUUID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5026 | /* end confdefs.h. */ |
| 5027 | |
| 5028 | /* Override any GCC internal prototype to avoid an error. |
| 5029 | Use char because int might match the return type of a GCC |
| 5030 | builtin and then its argument prototype would still apply. */ |
| 5031 | #ifdef __cplusplus |
| 5032 | extern "C" |
| 5033 | #endif |
| 5034 | char uuid_generate (); |
| 5035 | int |
| 5036 | main () |
| 5037 | { |
| 5038 | return uuid_generate (); |
| 5039 | ; |
| 5040 | return 0; |
| 5041 | } |
| 5042 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5043 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5044 | ac_cv_lib_uuid_uuid_generate=yes |
| 5045 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5046 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5047 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5048 | rm -f core conftest.err conftest.$ac_objext \ |
| 5049 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5050 | LIBS=$ac_check_lib_save_LIBS |
| 5051 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5053 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5054 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5055 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5056 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5057 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5058 | as_fn_error "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5059 | fi |
| 5060 | |
| 5061 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5063 | $as_echo "Disabling private uuid library" >&6; } |
| 5064 | else |
| 5065 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5066 | DEPLIBUUID=$LIBUUID |
| 5067 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5068 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5069 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5070 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5072 | $as_echo "Enabling private uuid library" >&6; } |
| 5073 | fi |
| 5074 | |
| 5075 | else |
| 5076 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5077 | DEPLIBUUID=$LIBUUID |
| 5078 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5079 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5080 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5081 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5083 | $as_echo "Enabling private uuid library by default" >&6; } |
| 5084 | |
| 5085 | fi |
| 5086 | |
| 5087 | |
| 5088 | |
| 5089 | |
| 5090 | |
| 5091 | |
| 5092 | |
| 5093 | |
| 5094 | |
| 5095 | |
| 5096 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5097 | if test -n "$ac_tool_prefix"; then |
| 5098 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5099 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5101 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5102 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5103 | $as_echo_n "(cached) " >&6 |
| 5104 | else |
| 5105 | case $PKG_CONFIG in |
| 5106 | [\\/]* | ?:[\\/]*) |
| 5107 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5108 | ;; |
| 5109 | *) |
| 5110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5111 | for as_dir in $PATH |
| 5112 | do |
| 5113 | IFS=$as_save_IFS |
| 5114 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5115 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5117 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5119 | break 2 |
| 5120 | fi |
| 5121 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5122 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5123 | IFS=$as_save_IFS |
| 5124 | |
| 5125 | ;; |
| 5126 | esac |
| 5127 | fi |
| 5128 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5129 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5131 | $as_echo "$PKG_CONFIG" >&6; } |
| 5132 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5134 | $as_echo "no" >&6; } |
| 5135 | fi |
| 5136 | |
| 5137 | |
| 5138 | fi |
| 5139 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5140 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5141 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5142 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5144 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5145 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5146 | $as_echo_n "(cached) " >&6 |
| 5147 | else |
| 5148 | case $ac_pt_PKG_CONFIG in |
| 5149 | [\\/]* | ?:[\\/]*) |
| 5150 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5151 | ;; |
| 5152 | *) |
| 5153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5154 | for as_dir in $PATH |
| 5155 | do |
| 5156 | IFS=$as_save_IFS |
| 5157 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5158 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5160 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5162 | break 2 |
| 5163 | fi |
| 5164 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5165 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5166 | IFS=$as_save_IFS |
| 5167 | |
| 5168 | ;; |
| 5169 | esac |
| 5170 | fi |
| 5171 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5172 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5174 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5175 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5177 | $as_echo "no" >&6; } |
| 5178 | fi |
| 5179 | |
| 5180 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5181 | PKG_CONFIG="" |
| 5182 | else |
| 5183 | case $cross_compiling:$ac_tool_warned in |
| 5184 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5186 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5187 | ac_tool_warned=yes ;; |
| 5188 | esac |
| 5189 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5190 | fi |
| 5191 | else |
| 5192 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5193 | fi |
| 5194 | |
| 5195 | fi |
| 5196 | if test -n "$PKG_CONFIG"; then |
| 5197 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5199 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5200 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5202 | $as_echo "yes" >&6; } |
| 5203 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5205 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5206 | PKG_CONFIG="" |
| 5207 | fi |
| 5208 | |
| 5209 | fi |
| 5210 | LIBBLKID= |
| 5211 | DEPLIBBLKID= |
| 5212 | STATIC_LIBBLKID= |
| 5213 | DEPSTATIC_LIBBLKID= |
| 5214 | PROFILED_LIBBLKID= |
| 5215 | DEPPROFILED_LIBBLKID= |
| 5216 | BLKID_CMT= |
| 5217 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5218 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5219 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5220 | then |
| 5221 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5222 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5223 | fi |
| 5224 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5226 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5227 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5228 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5229 | else |
| 5230 | ac_check_lib_save_LIBS=$LIBS |
| 5231 | LIBS="-lblkid $LIBBLKID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5233 | /* end confdefs.h. */ |
| 5234 | |
| 5235 | /* Override any GCC internal prototype to avoid an error. |
| 5236 | Use char because int might match the return type of a GCC |
| 5237 | builtin and then its argument prototype would still apply. */ |
| 5238 | #ifdef __cplusplus |
| 5239 | extern "C" |
| 5240 | #endif |
| 5241 | char blkid_get_cache (); |
| 5242 | int |
| 5243 | main () |
| 5244 | { |
| 5245 | return blkid_get_cache (); |
| 5246 | ; |
| 5247 | return 0; |
| 5248 | } |
| 5249 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5250 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5251 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5252 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5253 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5254 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5255 | rm -f core conftest.err conftest.$ac_objext \ |
| 5256 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5257 | LIBS=$ac_check_lib_save_LIBS |
| 5258 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5260 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5261 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5262 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5263 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5264 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5265 | as_fn_error "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5266 | fi |
| 5267 | |
| 5268 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5270 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5271 | else |
| 5272 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5273 | DEPLIBBLKID=$LIBBLKID |
| 5274 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5275 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5276 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5277 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5278 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5279 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5281 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5282 | fi |
| 5283 | |
| 5284 | else |
| 5285 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5286 | DEPLIBBLKID=$LIBBLKID |
| 5287 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5288 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5289 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5290 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5291 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5292 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5294 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5295 | |
| 5296 | fi |
| 5297 | |
| 5298 | |
| 5299 | |
| 5300 | |
| 5301 | |
| 5302 | |
| 5303 | |
| 5304 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5305 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5306 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5307 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5308 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5310 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5311 | DEBUGFS_CMT="#" |
| 5312 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5313 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5315 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5316 | fi |
| 5317 | |
| 5318 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5320 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5321 | DEBUGFS_CMT= |
| 5322 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5323 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5324 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5325 | |
| 5326 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5327 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5328 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5329 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5331 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5332 | IMAGER_CMT="#" |
| 5333 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5334 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5336 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5337 | fi |
| 5338 | |
| 5339 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5341 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5342 | IMAGER_CMT= |
| 5343 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5344 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5345 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5346 | |
| 5347 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5348 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5349 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5350 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5352 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5353 | RESIZER_CMT="#" |
| 5354 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5355 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5357 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5358 | fi |
| 5359 | |
| 5360 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5362 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5363 | RESIZER_CMT= |
| 5364 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5365 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5366 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5367 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5368 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5369 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5370 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5371 | then |
| 5372 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5374 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5375 | else |
| 5376 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5378 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5379 | fi |
| 5380 | |
| 5381 | else |
| 5382 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5383 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5384 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5386 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5387 | ;; |
| 5388 | *) |
| 5389 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5391 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5392 | esac |
| 5393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5394 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5395 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5396 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5397 | |
| 5398 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5399 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5400 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5401 | then |
| 5402 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5404 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5405 | else |
| 5406 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5408 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5409 | fi |
| 5410 | |
| 5411 | else |
| 5412 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5414 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5415 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5416 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5417 | |
| 5418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5419 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5420 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5421 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5422 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5423 | then |
| 5424 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5426 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5427 | else |
| 5428 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5430 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5431 | fi |
| 5432 | |
| 5433 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5434 | if test -n "$WITH_DIET_LIBC" |
| 5435 | then |
| 5436 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5438 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5439 | else |
| 5440 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5442 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5443 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5444 | |
| 5445 | fi |
| 5446 | |
| 5447 | if test "$try_tls" = "yes" |
| 5448 | then |
| 5449 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5451 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5452 | if test "${ac_cv_tls+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5453 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5454 | else |
| 5455 | |
| 5456 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5457 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5458 | case $ax_tls_keyword in |
| 5459 | none) ac_cv_tls=none ; break ;; |
| 5460 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5462 | /* end confdefs.h. */ |
| 5463 | #include <stdlib.h> |
| 5464 | static void |
| 5465 | foo(void) { |
| 5466 | static $ax_tls_keyword int bar; |
| 5467 | exit(1); |
| 5468 | } |
| 5469 | int |
| 5470 | main () |
| 5471 | { |
| 5472 | |
| 5473 | ; |
| 5474 | return 0; |
| 5475 | } |
| 5476 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5477 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5478 | ac_cv_tls=$ax_tls_keyword ; break |
| 5479 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5480 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5481 | |
| 5482 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5484 | esac |
| 5485 | done |
| 5486 | |
| 5487 | fi |
| 5488 | |
| 5489 | |
| 5490 | if test "$ac_cv_tls" != "none"; then |
| 5491 | |
| 5492 | cat >>confdefs.h <<_ACEOF |
| 5493 | #define TLS $ac_cv_tls |
| 5494 | _ACEOF |
| 5495 | |
| 5496 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5498 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5499 | |
| 5500 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5501 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5502 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5503 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5504 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5506 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5507 | UUIDD_CMT="#" |
| 5508 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5509 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5510 | |
| 5511 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5513 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5514 | fi |
| 5515 | |
| 5516 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5517 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5518 | |
| 5519 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5521 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5522 | |
| 5523 | fi |
| 5524 | |
| 5525 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5526 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5527 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5528 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5529 | PACKAGE=e2fsprogs |
| 5530 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5531 | VERSION=0.14.1 |
| 5532 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5533 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5534 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5535 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5536 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5537 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5538 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5539 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5540 | |
| 5541 | |
| 5542 | |
| 5543 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5545 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5546 | set x ${MAKE-make} |
| 5547 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5548 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5549 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5550 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5551 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5552 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5553 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5554 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5555 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5556 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5557 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5558 | *@@@%%%=?*=@@@%%%*) |
| 5559 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5560 | *) |
| 5561 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5562 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5563 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5564 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5565 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5567 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5568 | SET_MAKE= |
| 5569 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5571 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5572 | SET_MAKE="MAKE=${MAKE-make}" |
| 5573 | fi |
| 5574 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5575 | # Find a good install program. We prefer a C program (faster), |
| 5576 | # so one script is as good as another. But avoid the broken or |
| 5577 | # incompatible versions: |
| 5578 | # SysV /etc/install, /usr/sbin/install |
| 5579 | # SunOS /usr/etc/install |
| 5580 | # IRIX /sbin/install |
| 5581 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5582 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5583 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5584 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5585 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5586 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5587 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5588 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5590 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5591 | if test -z "$INSTALL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5592 | if test "${ac_cv_path_install+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5593 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5594 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5596 | for as_dir in $PATH |
| 5597 | do |
| 5598 | IFS=$as_save_IFS |
| 5599 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5600 | # Account for people who put trailing slashes in PATH elements. |
| 5601 | case $as_dir/ in #(( |
| 5602 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5603 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5604 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5605 | /usr/ucb/* ) ;; |
| 5606 | *) |
| 5607 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5608 | # Don't use installbsd from OSF since it installs stuff as root |
| 5609 | # by default. |
| 5610 | for ac_prog in ginstall scoinst install; do |
| 5611 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5612 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5613 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5614 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5615 | # AIX install. It has an incompatible calling convention. |
| 5616 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5617 | elif test $ac_prog = install && |
| 5618 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5619 | # program-specific install script used by HP pwplus--don't use. |
| 5620 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5621 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5622 | rm -rf conftest.one conftest.two conftest.dir |
| 5623 | echo one > conftest.one |
| 5624 | echo two > conftest.two |
| 5625 | mkdir conftest.dir |
| 5626 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5627 | test -s conftest.one && test -s conftest.two && |
| 5628 | test -s conftest.dir/conftest.one && |
| 5629 | test -s conftest.dir/conftest.two |
| 5630 | then |
| 5631 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5632 | break 3 |
| 5633 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5634 | fi |
| 5635 | fi |
| 5636 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5637 | done |
| 5638 | ;; |
| 5639 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5640 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5641 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5642 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5643 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5644 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5645 | |
| 5646 | fi |
| 5647 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5648 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5649 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5650 | # As a last resort, use the slow shell script. Don't cache a |
| 5651 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5652 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5653 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5654 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5655 | fi |
| 5656 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5658 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5659 | |
| 5660 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5661 | # It thinks the first close brace ends the variable substitution. |
| 5662 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5663 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5664 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5665 | |
| 5666 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5667 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5668 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5669 | MKINSTALLDIRS= |
| 5670 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5671 | case "$ac_aux_dir" in |
| 5672 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5673 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5674 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5675 | fi |
| 5676 | if test -z "$MKINSTALLDIRS"; then |
| 5677 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5678 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5679 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5680 | |
| 5681 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5683 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5684 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5685 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5686 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5687 | else |
| 5688 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5689 | fi |
| 5690 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5692 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5693 | |
| 5694 | |
| 5695 | |
| 5696 | |
| 5697 | |
| 5698 | |
| 5699 | # Prepare PATH_SEPARATOR. |
| 5700 | # The user is always right. |
| 5701 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5702 | echo "#! /bin/sh" >conf$$.sh |
| 5703 | echo "exit 0" >>conf$$.sh |
| 5704 | chmod +x conf$$.sh |
| 5705 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5706 | PATH_SEPARATOR=';' |
| 5707 | else |
| 5708 | PATH_SEPARATOR=: |
| 5709 | fi |
| 5710 | rm -f conf$$.sh |
| 5711 | fi |
| 5712 | |
| 5713 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5714 | # as systems may use methods other than mode bits to determine executability. |
| 5715 | cat >conf$$.file <<_ASEOF |
| 5716 | #! /bin/sh |
| 5717 | exit 0 |
| 5718 | _ASEOF |
| 5719 | chmod +x conf$$.file |
| 5720 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5721 | ac_executable_p="test -x" |
| 5722 | else |
| 5723 | ac_executable_p="test -f" |
| 5724 | fi |
| 5725 | rm -f conf$$.file |
| 5726 | |
| 5727 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5728 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5730 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5731 | if test "${ac_cv_path_MSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5732 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5733 | else |
| 5734 | case "$MSGFMT" in |
| 5735 | [\\/]* | ?:[\\/]*) |
| 5736 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5737 | ;; |
| 5738 | *) |
| 5739 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5740 | for ac_dir in $PATH; do |
| 5741 | IFS="$ac_save_IFS" |
| 5742 | test -z "$ac_dir" && ac_dir=. |
| 5743 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5744 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5745 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5746 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5747 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5748 | break 2 |
| 5749 | fi |
| 5750 | fi |
| 5751 | done |
| 5752 | done |
| 5753 | IFS="$ac_save_IFS" |
| 5754 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5755 | ;; |
| 5756 | esac |
| 5757 | fi |
| 5758 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5759 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5761 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5762 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5764 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5765 | fi |
| 5766 | |
| 5767 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5768 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5770 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5771 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5772 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5773 | else |
| 5774 | case $GMSGFMT in |
| 5775 | [\\/]* | ?:[\\/]*) |
| 5776 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5777 | ;; |
| 5778 | *) |
| 5779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5780 | for as_dir in $PATH |
| 5781 | do |
| 5782 | IFS=$as_save_IFS |
| 5783 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5784 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5786 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5788 | break 2 |
| 5789 | fi |
| 5790 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5791 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5792 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5793 | |
| 5794 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5795 | ;; |
| 5796 | esac |
| 5797 | fi |
| 5798 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5799 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5801 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5802 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5804 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5805 | fi |
| 5806 | |
| 5807 | |
| 5808 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5809 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5810 | # Prepare PATH_SEPARATOR. |
| 5811 | # The user is always right. |
| 5812 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5813 | echo "#! /bin/sh" >conf$$.sh |
| 5814 | echo "exit 0" >>conf$$.sh |
| 5815 | chmod +x conf$$.sh |
| 5816 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5817 | PATH_SEPARATOR=';' |
| 5818 | else |
| 5819 | PATH_SEPARATOR=: |
| 5820 | fi |
| 5821 | rm -f conf$$.sh |
| 5822 | fi |
| 5823 | |
| 5824 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5825 | # as systems may use methods other than mode bits to determine executability. |
| 5826 | cat >conf$$.file <<_ASEOF |
| 5827 | #! /bin/sh |
| 5828 | exit 0 |
| 5829 | _ASEOF |
| 5830 | chmod +x conf$$.file |
| 5831 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5832 | ac_executable_p="test -x" |
| 5833 | else |
| 5834 | ac_executable_p="test -f" |
| 5835 | fi |
| 5836 | rm -f conf$$.file |
| 5837 | |
| 5838 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5839 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5841 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5842 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5843 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5844 | else |
| 5845 | case "$XGETTEXT" in |
| 5846 | [\\/]* | ?:[\\/]*) |
| 5847 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5848 | ;; |
| 5849 | *) |
| 5850 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5851 | for ac_dir in $PATH; do |
| 5852 | IFS="$ac_save_IFS" |
| 5853 | test -z "$ac_dir" && ac_dir=. |
| 5854 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5855 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5856 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5857 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5858 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5859 | break 2 |
| 5860 | fi |
| 5861 | fi |
| 5862 | done |
| 5863 | done |
| 5864 | IFS="$ac_save_IFS" |
| 5865 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5866 | ;; |
| 5867 | esac |
| 5868 | fi |
| 5869 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5870 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5872 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5873 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5875 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5876 | fi |
| 5877 | |
| 5878 | rm -f messages.po |
| 5879 | |
| 5880 | |
| 5881 | # Prepare PATH_SEPARATOR. |
| 5882 | # The user is always right. |
| 5883 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5884 | echo "#! /bin/sh" >conf$$.sh |
| 5885 | echo "exit 0" >>conf$$.sh |
| 5886 | chmod +x conf$$.sh |
| 5887 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5888 | PATH_SEPARATOR=';' |
| 5889 | else |
| 5890 | PATH_SEPARATOR=: |
| 5891 | fi |
| 5892 | rm -f conf$$.sh |
| 5893 | fi |
| 5894 | |
| 5895 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5896 | # as systems may use methods other than mode bits to determine executability. |
| 5897 | cat >conf$$.file <<_ASEOF |
| 5898 | #! /bin/sh |
| 5899 | exit 0 |
| 5900 | _ASEOF |
| 5901 | chmod +x conf$$.file |
| 5902 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5903 | ac_executable_p="test -x" |
| 5904 | else |
| 5905 | ac_executable_p="test -f" |
| 5906 | fi |
| 5907 | rm -f conf$$.file |
| 5908 | |
| 5909 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5910 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5912 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5913 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5914 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5915 | else |
| 5916 | case "$MSGMERGE" in |
| 5917 | [\\/]* | ?:[\\/]*) |
| 5918 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5919 | ;; |
| 5920 | *) |
| 5921 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5922 | for ac_dir in $PATH; do |
| 5923 | IFS="$ac_save_IFS" |
| 5924 | test -z "$ac_dir" && ac_dir=. |
| 5925 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5926 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5927 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5928 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5929 | break 2 |
| 5930 | fi |
| 5931 | fi |
| 5932 | done |
| 5933 | done |
| 5934 | IFS="$ac_save_IFS" |
| 5935 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5936 | ;; |
| 5937 | esac |
| 5938 | fi |
| 5939 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5940 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5942 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5943 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5945 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5946 | fi |
| 5947 | |
| 5948 | |
| 5949 | if test "$GMSGFMT" != ":"; then |
| 5950 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 5951 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5952 | : ; |
| 5953 | else |
| 5954 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5956 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5957 | GMSGFMT=":" |
| 5958 | fi |
| 5959 | fi |
| 5960 | |
| 5961 | if test "$XGETTEXT" != ":"; then |
| 5962 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5963 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5964 | : ; |
| 5965 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5967 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5968 | XGETTEXT=":" |
| 5969 | fi |
| 5970 | rm -f messages.po |
| 5971 | fi |
| 5972 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5973 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5974 | |
| 5975 | |
| 5976 | if test -n "$ac_tool_prefix"; then |
| 5977 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5978 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5980 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5981 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5982 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5983 | else |
| 5984 | if test -n "$RANLIB"; then |
| 5985 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5986 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5988 | for as_dir in $PATH |
| 5989 | do |
| 5990 | IFS=$as_save_IFS |
| 5991 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5992 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5994 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5996 | break 2 |
| 5997 | fi |
| 5998 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5999 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6000 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6001 | |
| 6002 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6003 | fi |
| 6004 | RANLIB=$ac_cv_prog_RANLIB |
| 6005 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6007 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6008 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6010 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6011 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6012 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6013 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6014 | fi |
| 6015 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6016 | ac_ct_RANLIB=$RANLIB |
| 6017 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6018 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6020 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6021 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6022 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6023 | else |
| 6024 | if test -n "$ac_ct_RANLIB"; then |
| 6025 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6026 | else |
| 6027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6028 | for as_dir in $PATH |
| 6029 | do |
| 6030 | IFS=$as_save_IFS |
| 6031 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6032 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6034 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6036 | break 2 |
| 6037 | fi |
| 6038 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6039 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6040 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6041 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6042 | fi |
| 6043 | fi |
| 6044 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6045 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6047 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6048 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6050 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6051 | fi |
| 6052 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6053 | if test "x$ac_ct_RANLIB" = x; then |
| 6054 | RANLIB=":" |
| 6055 | else |
| 6056 | case $cross_compiling:$ac_tool_warned in |
| 6057 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6059 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6060 | ac_tool_warned=yes ;; |
| 6061 | esac |
| 6062 | RANLIB=$ac_ct_RANLIB |
| 6063 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6064 | else |
| 6065 | RANLIB="$ac_cv_prog_RANLIB" |
| 6066 | fi |
| 6067 | |
| 6068 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6070 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6071 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6072 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6073 | else |
| 6074 | ac_check_lib_save_LIBS=$LIBS |
| 6075 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6077 | /* end confdefs.h. */ |
| 6078 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6079 | /* Override any GCC internal prototype to avoid an error. |
| 6080 | Use char because int might match the return type of a GCC |
| 6081 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6082 | #ifdef __cplusplus |
| 6083 | extern "C" |
| 6084 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6085 | char strerror (); |
| 6086 | int |
| 6087 | main () |
| 6088 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6089 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6090 | ; |
| 6091 | return 0; |
| 6092 | } |
| 6093 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6094 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6095 | ac_cv_lib_cposix_strerror=yes |
| 6096 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6097 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6098 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6099 | rm -f core conftest.err conftest.$ac_objext \ |
| 6100 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6101 | LIBS=$ac_check_lib_save_LIBS |
| 6102 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6104 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6105 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6106 | LIBS="$LIBS -lcposix" |
| 6107 | fi |
| 6108 | |
| 6109 | |
| 6110 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6112 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6113 | if test "${ac_cv_c_const+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6114 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6115 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6117 | /* end confdefs.h. */ |
| 6118 | |
| 6119 | int |
| 6120 | main () |
| 6121 | { |
| 6122 | /* FIXME: Include the comments suggested by Paul. */ |
| 6123 | #ifndef __cplusplus |
| 6124 | /* Ultrix mips cc rejects this. */ |
| 6125 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6126 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6127 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6128 | char const *const *pcpcc; |
| 6129 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6130 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6131 | struct point {int x, y;}; |
| 6132 | static struct point const zero = {0,0}; |
| 6133 | /* AIX XL C 1.02.0.0 rejects this. |
| 6134 | It does not let you subtract one const X* pointer from another in |
| 6135 | an arm of an if-expression whose if-part is not a constant |
| 6136 | expression */ |
| 6137 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6138 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6139 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6140 | ++pcpcc; |
| 6141 | ppc = (char**) pcpcc; |
| 6142 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6143 | { /* SCO 3.2v4 cc rejects this. */ |
| 6144 | char *t; |
| 6145 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6146 | |
| 6147 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6148 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6149 | } |
| 6150 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6151 | int x[] = {25, 17}; |
| 6152 | const int *foo = &x[0]; |
| 6153 | ++foo; |
| 6154 | } |
| 6155 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6156 | typedef const int *iptr; |
| 6157 | iptr p = 0; |
| 6158 | ++p; |
| 6159 | } |
| 6160 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6161 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6162 | struct s { int j; const int *ap[3]; }; |
| 6163 | struct s *b; b->j = 5; |
| 6164 | } |
| 6165 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6166 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6167 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6168 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6169 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6170 | #endif |
| 6171 | |
| 6172 | ; |
| 6173 | return 0; |
| 6174 | } |
| 6175 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6176 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6177 | ac_cv_c_const=yes |
| 6178 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6179 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6180 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6182 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6184 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6185 | if test $ac_cv_c_const = no; then |
| 6186 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6187 | $as_echo "#define const /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6188 | |
| 6189 | fi |
| 6190 | |
| 6191 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6193 | $as_echo_n "checking for signed... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6194 | if test "${bh_cv_c_signed+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6195 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6196 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6198 | /* end confdefs.h. */ |
| 6199 | |
| 6200 | int |
| 6201 | main () |
| 6202 | { |
| 6203 | signed char x; |
| 6204 | ; |
| 6205 | return 0; |
| 6206 | } |
| 6207 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6208 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6209 | bh_cv_c_signed=yes |
| 6210 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6211 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6212 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6214 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6216 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6217 | if test $bh_cv_c_signed = no; then |
| 6218 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6219 | $as_echo "#define signed /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6220 | |
| 6221 | fi |
| 6222 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6224 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6225 | if test "${ac_cv_c_inline+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6226 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6227 | else |
| 6228 | ac_cv_c_inline=no |
| 6229 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6231 | /* end confdefs.h. */ |
| 6232 | #ifndef __cplusplus |
| 6233 | typedef int foo_t; |
| 6234 | static $ac_kw foo_t static_foo () {return 0; } |
| 6235 | $ac_kw foo_t foo () {return 0; } |
| 6236 | #endif |
| 6237 | |
| 6238 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6239 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6240 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6241 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6243 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6244 | done |
| 6245 | |
| 6246 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6248 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6249 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6250 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6251 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6252 | *) |
| 6253 | case $ac_cv_c_inline in |
| 6254 | no) ac_val=;; |
| 6255 | *) ac_val=$ac_cv_c_inline;; |
| 6256 | esac |
| 6257 | cat >>confdefs.h <<_ACEOF |
| 6258 | #ifndef __cplusplus |
| 6259 | #define inline $ac_val |
| 6260 | #endif |
| 6261 | _ACEOF |
| 6262 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6263 | esac |
| 6264 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6265 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 6266 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6267 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6268 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6269 | |
| 6270 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6271 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6272 | _ACEOF |
| 6273 | |
| 6274 | fi |
| 6275 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6276 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 6277 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6278 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6279 | else |
| 6280 | |
| 6281 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6282 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6283 | _ACEOF |
| 6284 | |
| 6285 | fi |
| 6286 | |
| 6287 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6289 | $as_echo_n "checking for long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6290 | if test "${ac_cv_type_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6291 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6292 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6294 | /* end confdefs.h. */ |
| 6295 | long long ll = 1LL; int i = 63; |
| 6296 | int |
| 6297 | main () |
| 6298 | { |
| 6299 | long long llmax = (long long) -1; |
| 6300 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6301 | ; |
| 6302 | return 0; |
| 6303 | } |
| 6304 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6305 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6306 | ac_cv_type_long_long=yes |
| 6307 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6308 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6309 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6310 | rm -f core conftest.err conftest.$ac_objext \ |
| 6311 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6312 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6314 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6315 | if test $ac_cv_type_long_long = yes; then |
| 6316 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6317 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6318 | |
| 6319 | fi |
| 6320 | |
| 6321 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6323 | $as_echo_n "checking for long double... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6324 | if test "${gt_cv_c_long_double+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6325 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6326 | else |
| 6327 | if test "$GCC" = yes; then |
| 6328 | gt_cv_c_long_double=yes |
| 6329 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6331 | /* end confdefs.h. */ |
| 6332 | |
| 6333 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6334 | long double foo = 0.0; |
| 6335 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6336 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6337 | |
| 6338 | int |
| 6339 | main () |
| 6340 | { |
| 6341 | |
| 6342 | ; |
| 6343 | return 0; |
| 6344 | } |
| 6345 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6346 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6347 | gt_cv_c_long_double=yes |
| 6348 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6349 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6350 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6352 | fi |
| 6353 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6355 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6356 | if test $gt_cv_c_long_double = yes; then |
| 6357 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6358 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6359 | |
| 6360 | fi |
| 6361 | |
| 6362 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6364 | $as_echo_n "checking for wchar_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6365 | if test "${gt_cv_c_wchar_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6366 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6367 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6369 | /* end confdefs.h. */ |
| 6370 | #include <stddef.h> |
| 6371 | wchar_t foo = (wchar_t)'\0'; |
| 6372 | int |
| 6373 | main () |
| 6374 | { |
| 6375 | |
| 6376 | ; |
| 6377 | return 0; |
| 6378 | } |
| 6379 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6380 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6381 | gt_cv_c_wchar_t=yes |
| 6382 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6383 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6384 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6386 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6388 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6389 | if test $gt_cv_c_wchar_t = yes; then |
| 6390 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6391 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6392 | |
| 6393 | fi |
| 6394 | |
| 6395 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6397 | $as_echo_n "checking for wint_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6398 | if test "${gt_cv_c_wint_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6399 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6400 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6402 | /* end confdefs.h. */ |
| 6403 | #include <wchar.h> |
| 6404 | wint_t foo = (wchar_t)'\0'; |
| 6405 | int |
| 6406 | main () |
| 6407 | { |
| 6408 | |
| 6409 | ; |
| 6410 | return 0; |
| 6411 | } |
| 6412 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6413 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6414 | gt_cv_c_wint_t=yes |
| 6415 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6416 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6417 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6419 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6421 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6422 | if test $gt_cv_c_wint_t = yes; then |
| 6423 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6424 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6425 | |
| 6426 | fi |
| 6427 | |
| 6428 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6430 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6431 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6432 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6433 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6435 | /* end confdefs.h. */ |
| 6436 | #include <sys/types.h> |
| 6437 | #include <inttypes.h> |
| 6438 | int |
| 6439 | main () |
| 6440 | { |
| 6441 | uintmax_t i = (uintmax_t) -1; |
| 6442 | ; |
| 6443 | return 0; |
| 6444 | } |
| 6445 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6446 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6447 | jm_ac_cv_header_inttypes_h=yes |
| 6448 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6449 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6450 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6452 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6454 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6455 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6456 | |
| 6457 | cat >>confdefs.h <<_ACEOF |
| 6458 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6459 | _ACEOF |
| 6460 | |
| 6461 | fi |
| 6462 | |
| 6463 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6465 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6466 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6467 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6468 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6470 | /* end confdefs.h. */ |
| 6471 | #include <sys/types.h> |
| 6472 | #include <stdint.h> |
| 6473 | int |
| 6474 | main () |
| 6475 | { |
| 6476 | uintmax_t i = (uintmax_t) -1; |
| 6477 | ; |
| 6478 | return 0; |
| 6479 | } |
| 6480 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6481 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6482 | jm_ac_cv_header_stdint_h=yes |
| 6483 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6484 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6487 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6489 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6490 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6491 | |
| 6492 | cat >>confdefs.h <<_ACEOF |
| 6493 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6494 | _ACEOF |
| 6495 | |
| 6496 | fi |
| 6497 | |
| 6498 | |
| 6499 | |
| 6500 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6502 | $as_echo_n "checking for intmax_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6503 | if test "${gt_cv_c_intmax_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6504 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6505 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6507 | /* end confdefs.h. */ |
| 6508 | |
| 6509 | #include <stddef.h> |
| 6510 | #include <stdlib.h> |
| 6511 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6512 | #include <stdint.h> |
| 6513 | #endif |
| 6514 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6515 | #include <inttypes.h> |
| 6516 | #endif |
| 6517 | |
| 6518 | int |
| 6519 | main () |
| 6520 | { |
| 6521 | intmax_t x = -1; |
| 6522 | ; |
| 6523 | return 0; |
| 6524 | } |
| 6525 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6526 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6527 | gt_cv_c_intmax_t=yes |
| 6528 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6529 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6530 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6532 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6534 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6535 | if test $gt_cv_c_intmax_t = yes; then |
| 6536 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6537 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6538 | |
| 6539 | fi |
| 6540 | |
| 6541 | |
| 6542 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6544 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6545 | if test "${gt_cv_func_printf_posix+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6546 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6547 | else |
| 6548 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6549 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6550 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6552 | /* end confdefs.h. */ |
| 6553 | |
| 6554 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6555 | notposix |
| 6556 | #endif |
| 6557 | |
| 6558 | _ACEOF |
| 6559 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6560 | $EGREP "notposix" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6561 | gt_cv_func_printf_posix="guessing no" |
| 6562 | else |
| 6563 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6564 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6565 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6566 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6567 | |
| 6568 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6570 | /* end confdefs.h. */ |
| 6571 | |
| 6572 | #include <stdio.h> |
| 6573 | #include <string.h> |
| 6574 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6575 | dollar expansion (possibly an autoconf bug). */ |
| 6576 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6577 | static char buf[100]; |
| 6578 | int main () |
| 6579 | { |
| 6580 | sprintf (buf, format, 33, 55); |
| 6581 | return (strcmp (buf, "55 33") != 0); |
| 6582 | } |
| 6583 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6584 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6585 | gt_cv_func_printf_posix=yes |
| 6586 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6587 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6588 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6589 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6590 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6591 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6592 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6593 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6594 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6596 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6597 | case $gt_cv_func_printf_posix in |
| 6598 | *yes) |
| 6599 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6600 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6601 | |
| 6602 | ;; |
| 6603 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6604 | |
| 6605 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6606 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6608 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6609 | if test "${ac_cv_working_alloca_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6610 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6611 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6613 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6614 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6615 | int |
| 6616 | main () |
| 6617 | { |
| 6618 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6619 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6620 | ; |
| 6621 | return 0; |
| 6622 | } |
| 6623 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6624 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6625 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6626 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6627 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6628 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6629 | rm -f core conftest.err conftest.$ac_objext \ |
| 6630 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6631 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6633 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6634 | if test $ac_cv_working_alloca_h = yes; then |
| 6635 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6636 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6637 | |
| 6638 | fi |
| 6639 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6641 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6642 | if test "${ac_cv_func_alloca_works+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6643 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6644 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6646 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6647 | #ifdef __GNUC__ |
| 6648 | # define alloca __builtin_alloca |
| 6649 | #else |
| 6650 | # ifdef _MSC_VER |
| 6651 | # include <malloc.h> |
| 6652 | # define alloca _alloca |
| 6653 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6654 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6655 | # include <alloca.h> |
| 6656 | # else |
| 6657 | # ifdef _AIX |
| 6658 | #pragma alloca |
| 6659 | # else |
| 6660 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6661 | char *alloca (); |
| 6662 | # endif |
| 6663 | # endif |
| 6664 | # endif |
| 6665 | # endif |
| 6666 | #endif |
| 6667 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6668 | int |
| 6669 | main () |
| 6670 | { |
| 6671 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6672 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6673 | ; |
| 6674 | return 0; |
| 6675 | } |
| 6676 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6677 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6678 | ac_cv_func_alloca_works=yes |
| 6679 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6680 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6681 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6682 | rm -f core conftest.err conftest.$ac_objext \ |
| 6683 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6684 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6686 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6687 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6688 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6689 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6690 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6691 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6692 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6693 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6694 | # that cause trouble. Some versions do not even contain alloca or |
| 6695 | # contain a buggy version. If you still want to use their alloca, |
| 6696 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6697 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6698 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6699 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6700 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6701 | |
| 6702 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6704 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6705 | if test "${ac_cv_os_cray+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6706 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6707 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6709 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6710 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6711 | webecray |
| 6712 | #else |
| 6713 | wenotbecray |
| 6714 | #endif |
| 6715 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6716 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6717 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6718 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6719 | ac_cv_os_cray=yes |
| 6720 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6721 | ac_cv_os_cray=no |
| 6722 | fi |
| 6723 | rm -f conftest* |
| 6724 | |
| 6725 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6727 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6728 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6729 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6730 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6731 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6732 | eval as_val=\$$as_ac_var |
| 6733 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6734 | |
| 6735 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6736 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6737 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6738 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6739 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6740 | fi |
| 6741 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6742 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6743 | fi |
| 6744 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6746 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6747 | if test "${ac_cv_c_stack_direction+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6748 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6749 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6750 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6751 | ac_cv_c_stack_direction=0 |
| 6752 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6754 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6755 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6756 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6757 | find_stack_direction () |
| 6758 | { |
| 6759 | static char *addr = 0; |
| 6760 | auto char dummy; |
| 6761 | if (addr == 0) |
| 6762 | { |
| 6763 | addr = &dummy; |
| 6764 | return find_stack_direction (); |
| 6765 | } |
| 6766 | else |
| 6767 | return (&dummy > addr) ? 1 : -1; |
| 6768 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6769 | |
| 6770 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6771 | main () |
| 6772 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6773 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6774 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6775 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6776 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6777 | ac_cv_c_stack_direction=1 |
| 6778 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6779 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6780 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6781 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6782 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6783 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6784 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6785 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6787 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6788 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6789 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6790 | _ACEOF |
| 6791 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6792 | |
| 6793 | fi |
| 6794 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6795 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6796 | do : |
| 6797 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6798 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6799 | eval as_val=\$$as_ac_Header |
| 6800 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6801 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6802 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6803 | _ACEOF |
| 6804 | |
| 6805 | fi |
| 6806 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6807 | done |
| 6808 | |
| 6809 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6810 | do : |
| 6811 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 6812 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6813 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6814 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6815 | _ACEOF |
| 6816 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6817 | fi |
| 6818 | done |
| 6819 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6821 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6822 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6823 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6824 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6825 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6826 | ac_cv_func_mmap_fixed_mapped=no |
| 6827 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6829 | /* end confdefs.h. */ |
| 6830 | $ac_includes_default |
| 6831 | /* malloc might have been renamed as rpl_malloc. */ |
| 6832 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6833 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6834 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6835 | Here is a matrix of mmap possibilities: |
| 6836 | mmap private not fixed |
| 6837 | mmap private fixed at somewhere currently unmapped |
| 6838 | mmap private fixed at somewhere already mapped |
| 6839 | mmap shared not fixed |
| 6840 | mmap shared fixed at somewhere currently unmapped |
| 6841 | mmap shared fixed at somewhere already mapped |
| 6842 | For private mappings, we should verify that changes cannot be read() |
| 6843 | back from the file, nor mmap's back from the file at a different |
| 6844 | address. (There have been systems where private was not correctly |
| 6845 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6846 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6847 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6848 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6849 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6850 | |
| 6851 | Grep wants private fixed already mapped. |
| 6852 | The main things grep needs to know about mmap are: |
| 6853 | * does it exist and is it safe to write into the mmap'd area |
| 6854 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6855 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6856 | #include <fcntl.h> |
| 6857 | #include <sys/mman.h> |
| 6858 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6859 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6860 | char *malloc (); |
| 6861 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6862 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6863 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6864 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6865 | /* Assume that all systems that can run configure have sys/param.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6866 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6867 | # define HAVE_SYS_PARAM_H 1 |
| 6868 | # endif |
| 6869 | |
| 6870 | # ifdef _SC_PAGESIZE |
| 6871 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6872 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6873 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6874 | # include <sys/param.h> |
| 6875 | # ifdef EXEC_PAGESIZE |
| 6876 | # define getpagesize() EXEC_PAGESIZE |
| 6877 | # else /* no EXEC_PAGESIZE */ |
| 6878 | # ifdef NBPG |
| 6879 | # define getpagesize() NBPG * CLSIZE |
| 6880 | # ifndef CLSIZE |
| 6881 | # define CLSIZE 1 |
| 6882 | # endif /* no CLSIZE */ |
| 6883 | # else /* no NBPG */ |
| 6884 | # ifdef NBPC |
| 6885 | # define getpagesize() NBPC |
| 6886 | # else /* no NBPC */ |
| 6887 | # ifdef PAGESIZE |
| 6888 | # define getpagesize() PAGESIZE |
| 6889 | # endif /* PAGESIZE */ |
| 6890 | # endif /* no NBPC */ |
| 6891 | # endif /* no NBPG */ |
| 6892 | # endif /* no EXEC_PAGESIZE */ |
| 6893 | # else /* no HAVE_SYS_PARAM_H */ |
| 6894 | # define getpagesize() 8192 /* punt totally */ |
| 6895 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6896 | # endif /* no _SC_PAGESIZE */ |
| 6897 | |
| 6898 | #endif /* no HAVE_GETPAGESIZE */ |
| 6899 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6900 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6901 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6902 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6903 | char *data, *data2, *data3; |
| 6904 | int i, pagesize; |
| 6905 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6906 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6907 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6908 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6909 | /* First, make a file with some known garbage in it. */ |
| 6910 | data = (char *) malloc (pagesize); |
| 6911 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6912 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6913 | for (i = 0; i < pagesize; ++i) |
| 6914 | *(data + i) = rand (); |
| 6915 | umask (0); |
| 6916 | fd = creat ("conftest.mmap", 0600); |
| 6917 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6918 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6919 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6920 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6921 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6922 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6923 | /* Next, try to mmap the file at a fixed address which already has |
| 6924 | something else allocated at it. If we can, also make sure that |
| 6925 | we see the same garbage. */ |
| 6926 | fd = open ("conftest.mmap", O_RDWR); |
| 6927 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6928 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6929 | data2 = (char *) malloc (2 * pagesize); |
| 6930 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6931 | return 1; |
| 6932 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6933 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6934 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6935 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6936 | for (i = 0; i < pagesize; ++i) |
| 6937 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6938 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6939 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6940 | /* Finally, make sure that changes to the mapped area do not |
| 6941 | percolate back to the file as seen by read(). (This is a bug on |
| 6942 | some variants of i386 svr4.0.) */ |
| 6943 | for (i = 0; i < pagesize; ++i) |
| 6944 | *(data2 + i) = *(data2 + i) + 1; |
| 6945 | data3 = (char *) malloc (pagesize); |
| 6946 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6947 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6948 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6949 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6950 | for (i = 0; i < pagesize; ++i) |
| 6951 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6952 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6953 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6954 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6955 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6956 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6957 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6958 | ac_cv_func_mmap_fixed_mapped=yes |
| 6959 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6960 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6961 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6962 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6963 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6964 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6965 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6966 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6968 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6969 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6970 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6971 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6972 | |
| 6973 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6974 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6975 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6976 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6978 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6979 | if test "${ac_cv_gnu_library_2_1+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6980 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6981 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6983 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6984 | |
| 6985 | #include <features.h> |
| 6986 | #ifdef __GNU_LIBRARY__ |
| 6987 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6988 | Lucky GNU user |
| 6989 | #endif |
| 6990 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6991 | |
| 6992 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6994 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6995 | ac_cv_gnu_library_2_1=yes |
| 6996 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6997 | ac_cv_gnu_library_2_1=no |
| 6998 | fi |
| 6999 | rm -f conftest* |
| 7000 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7001 | |
| 7002 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7003 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7005 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7006 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7007 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7008 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7010 | |
| 7011 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7013 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7014 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7015 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7016 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7017 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7018 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7019 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7020 | # Guess based on the CPU. |
| 7021 | case "$host_cpu" in |
| 7022 | alpha* | i3456786 | m68k | s390*) |
| 7023 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7024 | *) |
| 7025 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7026 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7027 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7028 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7030 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7031 | |
| 7032 | #include <stdlib.h> |
| 7033 | #include <signal.h> |
| 7034 | |
| 7035 | static void |
| 7036 | #ifdef __cplusplus |
| 7037 | sigfpe_handler (int sig) |
| 7038 | #else |
| 7039 | sigfpe_handler (sig) int sig; |
| 7040 | #endif |
| 7041 | { |
| 7042 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7043 | exit (sig != SIGFPE); |
| 7044 | } |
| 7045 | |
| 7046 | int x = 1; |
| 7047 | int y = 0; |
| 7048 | int z; |
| 7049 | int nan; |
| 7050 | |
| 7051 | int main () |
| 7052 | { |
| 7053 | signal (SIGFPE, sigfpe_handler); |
| 7054 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7055 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7056 | signal (SIGTRAP, sigfpe_handler); |
| 7057 | #endif |
| 7058 | /* Linux/SPARC yields signal SIGILL. */ |
| 7059 | #if defined (__sparc__) && defined (__linux__) |
| 7060 | signal (SIGILL, sigfpe_handler); |
| 7061 | #endif |
| 7062 | |
| 7063 | z = x / y; |
| 7064 | nan = y / y; |
| 7065 | exit (1); |
| 7066 | } |
| 7067 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7068 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7069 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7070 | gt_cv_int_divbyzero_sigfpe=yes |
| 7071 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7072 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7073 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7074 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7075 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7076 | fi |
| 7077 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7078 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7079 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7081 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7082 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7083 | *yes) value=1;; |
| 7084 | *) value=0;; |
| 7085 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7086 | |
| 7087 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7088 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7089 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7090 | |
| 7091 | |
| 7092 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7094 | $as_echo_n "checking for unsigned long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7095 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7096 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7097 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7099 | /* end confdefs.h. */ |
| 7100 | unsigned long long ull = 1ULL; int i = 63; |
| 7101 | int |
| 7102 | main () |
| 7103 | { |
| 7104 | unsigned long long ullmax = (unsigned long long) -1; |
| 7105 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7106 | ; |
| 7107 | return 0; |
| 7108 | } |
| 7109 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7110 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7111 | ac_cv_type_unsigned_long_long=yes |
| 7112 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7113 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7114 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7115 | rm -f core conftest.err conftest.$ac_objext \ |
| 7116 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7117 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7119 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7120 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7121 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7122 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7123 | |
| 7124 | fi |
| 7125 | |
| 7126 | |
| 7127 | |
| 7128 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7129 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7130 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7131 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7132 | && ac_type='unsigned long long' \ |
| 7133 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7134 | |
| 7135 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7136 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7137 | _ACEOF |
| 7138 | |
| 7139 | else |
| 7140 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7141 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7142 | |
| 7143 | fi |
| 7144 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7145 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7147 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7148 | if test "${gt_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7149 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7150 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7151 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7153 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7154 | #include <sys/types.h> |
| 7155 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7156 | int |
| 7157 | main () |
| 7158 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7159 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7160 | ; |
| 7161 | return 0; |
| 7162 | } |
| 7163 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7164 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7165 | gt_cv_header_inttypes_h=yes |
| 7166 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7167 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7168 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7170 | |
| 7171 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7173 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7174 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7175 | |
| 7176 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7177 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7178 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7179 | |
| 7180 | fi |
| 7181 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7182 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7183 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7184 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7186 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7187 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7188 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7189 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7190 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7192 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7193 | #include <inttypes.h> |
| 7194 | #ifdef PRId32 |
| 7195 | char *p = PRId32; |
| 7196 | #endif |
| 7197 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7198 | int |
| 7199 | main () |
| 7200 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7201 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7202 | ; |
| 7203 | return 0; |
| 7204 | } |
| 7205 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7206 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7207 | gt_cv_inttypes_pri_broken=no |
| 7208 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7209 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7210 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7212 | |
| 7213 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7215 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7216 | fi |
| 7217 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7218 | |
| 7219 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7220 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7221 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7222 | |
| 7223 | fi |
| 7224 | |
| 7225 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7226 | for ac_header in stdint.h |
| 7227 | do : |
| 7228 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7229 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7230 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7231 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7232 | _ACEOF |
| 7233 | |
| 7234 | fi |
| 7235 | |
| 7236 | done |
| 7237 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7239 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7240 | result= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7242 | /* end confdefs.h. */ |
| 7243 | |
| 7244 | #include <limits.h> |
| 7245 | #if HAVE_STDINT_H |
| 7246 | #include <stdint.h> |
| 7247 | #endif |
| 7248 | #ifdef SIZE_MAX |
| 7249 | Found it |
| 7250 | #endif |
| 7251 | |
| 7252 | _ACEOF |
| 7253 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7254 | $EGREP "Found it" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7255 | result=yes |
| 7256 | fi |
| 7257 | rm -f conftest* |
| 7258 | |
| 7259 | if test -z "$result"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7260 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7261 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7262 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7263 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7264 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7265 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7266 | |
| 7267 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : |
| 7268 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7269 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7270 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7271 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7272 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7273 | |
| 7274 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 7275 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7276 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7277 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7278 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7279 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7280 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7281 | if test "$fits_in_uint" = 1; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7283 | /* end confdefs.h. */ |
| 7284 | #include <stddef.h> |
| 7285 | extern size_t foo; |
| 7286 | extern unsigned long foo; |
| 7287 | |
| 7288 | int |
| 7289 | main () |
| 7290 | { |
| 7291 | |
| 7292 | ; |
| 7293 | return 0; |
| 7294 | } |
| 7295 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7296 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7297 | fits_in_uint=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7298 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7300 | fi |
| 7301 | if test -z "$result"; then |
| 7302 | if test "$fits_in_uint" = 1; then |
| 7303 | result="$res_hi$res_lo"U |
| 7304 | else |
| 7305 | result="$res_hi$res_lo"UL |
| 7306 | fi |
| 7307 | else |
| 7308 | result='~(size_t)0' |
| 7309 | fi |
| 7310 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7312 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7313 | if test "$result" != yes; then |
| 7314 | |
| 7315 | cat >>confdefs.h <<_ACEOF |
| 7316 | #define SIZE_MAX $result |
| 7317 | _ACEOF |
| 7318 | |
| 7319 | fi |
| 7320 | |
| 7321 | |
| 7322 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7323 | for ac_header in stdint.h |
| 7324 | do : |
| 7325 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7326 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7327 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7328 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7329 | _ACEOF |
| 7330 | |
| 7331 | fi |
| 7332 | |
| 7333 | done |
| 7334 | |
| 7335 | |
| 7336 | |
| 7337 | if test "X$prefix" = "XNONE"; then |
| 7338 | acl_final_prefix="$ac_default_prefix" |
| 7339 | else |
| 7340 | acl_final_prefix="$prefix" |
| 7341 | fi |
| 7342 | if test "X$exec_prefix" = "XNONE"; then |
| 7343 | acl_final_exec_prefix='${prefix}' |
| 7344 | else |
| 7345 | acl_final_exec_prefix="$exec_prefix" |
| 7346 | fi |
| 7347 | acl_save_prefix="$prefix" |
| 7348 | prefix="$acl_final_prefix" |
| 7349 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7350 | prefix="$acl_save_prefix" |
| 7351 | |
| 7352 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7353 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7354 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7355 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7356 | else |
| 7357 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7358 | fi |
| 7359 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7360 | # Prepare PATH_SEPARATOR. |
| 7361 | # The user is always right. |
| 7362 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7363 | echo "#! /bin/sh" >conf$$.sh |
| 7364 | echo "exit 0" >>conf$$.sh |
| 7365 | chmod +x conf$$.sh |
| 7366 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7367 | PATH_SEPARATOR=';' |
| 7368 | else |
| 7369 | PATH_SEPARATOR=: |
| 7370 | fi |
| 7371 | rm -f conf$$.sh |
| 7372 | fi |
| 7373 | ac_prog=ld |
| 7374 | if test "$GCC" = yes; then |
| 7375 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7377 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7378 | case $host in |
| 7379 | *-*-mingw*) |
| 7380 | # gcc leaves a trailing carriage return which upsets mingw |
| 7381 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7382 | *) |
| 7383 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7384 | esac |
| 7385 | case $ac_prog in |
| 7386 | # Accept absolute paths. |
| 7387 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7388 | re_direlt='/[^/][^/]*/\.\./' |
| 7389 | # Canonicalize the path of ld |
| 7390 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7391 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7392 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7393 | done |
| 7394 | test -z "$LD" && LD="$ac_prog" |
| 7395 | ;; |
| 7396 | "") |
| 7397 | # If it fails, then pretend we aren't using GCC. |
| 7398 | ac_prog=ld |
| 7399 | ;; |
| 7400 | *) |
| 7401 | # If it is relative, then search for the first ld in PATH. |
| 7402 | with_gnu_ld=unknown |
| 7403 | ;; |
| 7404 | esac |
| 7405 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7407 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7408 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7410 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7411 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7412 | if test "${acl_cv_path_LD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7413 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7414 | else |
| 7415 | if test -z "$LD"; then |
| 7416 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7417 | for ac_dir in $PATH; do |
| 7418 | test -z "$ac_dir" && ac_dir=. |
| 7419 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7420 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7421 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7422 | # but apparently some GNU ld's only accept -v. |
| 7423 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7424 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7425 | *GNU* | *'with BFD'*) |
| 7426 | test "$with_gnu_ld" != no && break ;; |
| 7427 | *) |
| 7428 | test "$with_gnu_ld" != yes && break ;; |
| 7429 | esac |
| 7430 | fi |
| 7431 | done |
| 7432 | IFS="$ac_save_ifs" |
| 7433 | else |
| 7434 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7435 | fi |
| 7436 | fi |
| 7437 | |
| 7438 | LD="$acl_cv_path_LD" |
| 7439 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7441 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7442 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7444 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7445 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7446 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 7447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7448 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7449 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7450 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7451 | else |
| 7452 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7453 | case `$LD -v 2>&1 </dev/null` in |
| 7454 | *GNU* | *'with BFD'*) |
| 7455 | acl_cv_prog_gnu_ld=yes ;; |
| 7456 | *) |
| 7457 | acl_cv_prog_gnu_ld=no ;; |
| 7458 | esac |
| 7459 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7461 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7462 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7463 | |
| 7464 | |
| 7465 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7467 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7468 | if test "${acl_cv_rpath+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7469 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7470 | else |
| 7471 | |
| 7472 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7473 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7474 | . ./conftest.sh |
| 7475 | rm -f ./conftest.sh |
| 7476 | acl_cv_rpath=done |
| 7477 | |
| 7478 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7480 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7481 | wl="$acl_cv_wl" |
| 7482 | libext="$acl_cv_libext" |
| 7483 | shlibext="$acl_cv_shlibext" |
| 7484 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7485 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7486 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7487 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7488 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7489 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7490 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7491 | else |
| 7492 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7493 | fi |
| 7494 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7495 | |
| 7496 | |
| 7497 | |
| 7498 | |
| 7499 | |
| 7500 | |
| 7501 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7502 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7503 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7504 | acl_save_prefix="$prefix" |
| 7505 | prefix="$acl_final_prefix" |
| 7506 | acl_save_exec_prefix="$exec_prefix" |
| 7507 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7508 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7509 | eval additional_includedir=\"$includedir\" |
| 7510 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7511 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7512 | exec_prefix="$acl_save_exec_prefix" |
| 7513 | prefix="$acl_save_prefix" |
| 7514 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7515 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7516 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7517 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7518 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7519 | if test "X$withval" = "Xno"; then |
| 7520 | use_additional=no |
| 7521 | else |
| 7522 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7523 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7524 | acl_save_prefix="$prefix" |
| 7525 | prefix="$acl_final_prefix" |
| 7526 | acl_save_exec_prefix="$exec_prefix" |
| 7527 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7528 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7529 | eval additional_includedir=\"$includedir\" |
| 7530 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7531 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7532 | exec_prefix="$acl_save_exec_prefix" |
| 7533 | prefix="$acl_save_prefix" |
| 7534 | |
| 7535 | else |
| 7536 | additional_includedir="$withval/include" |
| 7537 | additional_libdir="$withval/lib" |
| 7538 | fi |
| 7539 | fi |
| 7540 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7541 | fi |
| 7542 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7543 | LIBICONV= |
| 7544 | LTLIBICONV= |
| 7545 | INCICONV= |
| 7546 | rpathdirs= |
| 7547 | ltrpathdirs= |
| 7548 | names_already_handled= |
| 7549 | names_next_round='iconv ' |
| 7550 | while test -n "$names_next_round"; do |
| 7551 | names_this_round="$names_next_round" |
| 7552 | names_next_round= |
| 7553 | for name in $names_this_round; do |
| 7554 | already_handled= |
| 7555 | for n in $names_already_handled; do |
| 7556 | if test "$n" = "$name"; then |
| 7557 | already_handled=yes |
| 7558 | break |
| 7559 | fi |
| 7560 | done |
| 7561 | if test -z "$already_handled"; then |
| 7562 | names_already_handled="$names_already_handled $name" |
| 7563 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7564 | eval value=\"\$HAVE_LIB$uppername\" |
| 7565 | if test -n "$value"; then |
| 7566 | if test "$value" = yes; then |
| 7567 | eval value=\"\$LIB$uppername\" |
| 7568 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7569 | eval value=\"\$LTLIB$uppername\" |
| 7570 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7571 | else |
| 7572 | : |
| 7573 | fi |
| 7574 | else |
| 7575 | found_dir= |
| 7576 | found_la= |
| 7577 | found_so= |
| 7578 | found_a= |
| 7579 | if test $use_additional = yes; then |
| 7580 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7581 | found_dir="$additional_libdir" |
| 7582 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7583 | if test -f "$additional_libdir/lib$name.la"; then |
| 7584 | found_la="$additional_libdir/lib$name.la" |
| 7585 | fi |
| 7586 | else |
| 7587 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7588 | found_dir="$additional_libdir" |
| 7589 | found_a="$additional_libdir/lib$name.$libext" |
| 7590 | if test -f "$additional_libdir/lib$name.la"; then |
| 7591 | found_la="$additional_libdir/lib$name.la" |
| 7592 | fi |
| 7593 | fi |
| 7594 | fi |
| 7595 | fi |
| 7596 | if test "X$found_dir" = "X"; then |
| 7597 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7598 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7599 | acl_save_prefix="$prefix" |
| 7600 | prefix="$acl_final_prefix" |
| 7601 | acl_save_exec_prefix="$exec_prefix" |
| 7602 | exec_prefix="$acl_final_exec_prefix" |
| 7603 | eval x=\"$x\" |
| 7604 | exec_prefix="$acl_save_exec_prefix" |
| 7605 | prefix="$acl_save_prefix" |
| 7606 | |
| 7607 | case "$x" in |
| 7608 | -L*) |
| 7609 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7610 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 7611 | found_dir="$dir" |
| 7612 | found_so="$dir/lib$name.$shlibext" |
| 7613 | if test -f "$dir/lib$name.la"; then |
| 7614 | found_la="$dir/lib$name.la" |
| 7615 | fi |
| 7616 | else |
| 7617 | if test -f "$dir/lib$name.$libext"; then |
| 7618 | found_dir="$dir" |
| 7619 | found_a="$dir/lib$name.$libext" |
| 7620 | if test -f "$dir/lib$name.la"; then |
| 7621 | found_la="$dir/lib$name.la" |
| 7622 | fi |
| 7623 | fi |
| 7624 | fi |
| 7625 | ;; |
| 7626 | esac |
| 7627 | if test "X$found_dir" != "X"; then |
| 7628 | break |
| 7629 | fi |
| 7630 | done |
| 7631 | fi |
| 7632 | if test "X$found_dir" != "X"; then |
| 7633 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 7634 | if test "X$found_so" != "X"; then |
| 7635 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 7636 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7637 | else |
| 7638 | haveit= |
| 7639 | for x in $ltrpathdirs; do |
| 7640 | if test "X$x" = "X$found_dir"; then |
| 7641 | haveit=yes |
| 7642 | break |
| 7643 | fi |
| 7644 | done |
| 7645 | if test -z "$haveit"; then |
| 7646 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 7647 | fi |
| 7648 | if test "$hardcode_direct" = yes; then |
| 7649 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7650 | else |
| 7651 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 7652 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7653 | haveit= |
| 7654 | for x in $rpathdirs; do |
| 7655 | if test "X$x" = "X$found_dir"; then |
| 7656 | haveit=yes |
| 7657 | break |
| 7658 | fi |
| 7659 | done |
| 7660 | if test -z "$haveit"; then |
| 7661 | rpathdirs="$rpathdirs $found_dir" |
| 7662 | fi |
| 7663 | else |
| 7664 | haveit= |
| 7665 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7666 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7667 | acl_save_prefix="$prefix" |
| 7668 | prefix="$acl_final_prefix" |
| 7669 | acl_save_exec_prefix="$exec_prefix" |
| 7670 | exec_prefix="$acl_final_exec_prefix" |
| 7671 | eval x=\"$x\" |
| 7672 | exec_prefix="$acl_save_exec_prefix" |
| 7673 | prefix="$acl_save_prefix" |
| 7674 | |
| 7675 | if test "X$x" = "X-L$found_dir"; then |
| 7676 | haveit=yes |
| 7677 | break |
| 7678 | fi |
| 7679 | done |
| 7680 | if test -z "$haveit"; then |
| 7681 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 7682 | fi |
| 7683 | if test "$hardcode_minus_L" != no; then |
| 7684 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7685 | else |
| 7686 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7687 | fi |
| 7688 | fi |
| 7689 | fi |
| 7690 | fi |
| 7691 | else |
| 7692 | if test "X$found_a" != "X"; then |
| 7693 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 7694 | else |
| 7695 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 7696 | fi |
| 7697 | fi |
| 7698 | additional_includedir= |
| 7699 | case "$found_dir" in |
| 7700 | */lib | */lib/) |
| 7701 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 7702 | additional_includedir="$basedir/include" |
| 7703 | ;; |
| 7704 | esac |
| 7705 | if test "X$additional_includedir" != "X"; then |
| 7706 | if test "X$additional_includedir" != "X/usr/include"; then |
| 7707 | haveit= |
| 7708 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 7709 | if test -n "$GCC"; then |
| 7710 | case $host_os in |
| 7711 | linux*) haveit=yes;; |
| 7712 | esac |
| 7713 | fi |
| 7714 | fi |
| 7715 | if test -z "$haveit"; then |
| 7716 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7717 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7718 | acl_save_prefix="$prefix" |
| 7719 | prefix="$acl_final_prefix" |
| 7720 | acl_save_exec_prefix="$exec_prefix" |
| 7721 | exec_prefix="$acl_final_exec_prefix" |
| 7722 | eval x=\"$x\" |
| 7723 | exec_prefix="$acl_save_exec_prefix" |
| 7724 | prefix="$acl_save_prefix" |
| 7725 | |
| 7726 | if test "X$x" = "X-I$additional_includedir"; then |
| 7727 | haveit=yes |
| 7728 | break |
| 7729 | fi |
| 7730 | done |
| 7731 | if test -z "$haveit"; then |
| 7732 | if test -d "$additional_includedir"; then |
| 7733 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 7734 | fi |
| 7735 | fi |
| 7736 | fi |
| 7737 | fi |
| 7738 | fi |
| 7739 | if test -n "$found_la"; then |
| 7740 | save_libdir="$libdir" |
| 7741 | case "$found_la" in |
| 7742 | */* | *\\*) . "$found_la" ;; |
| 7743 | *) . "./$found_la" ;; |
| 7744 | esac |
| 7745 | libdir="$save_libdir" |
| 7746 | for dep in $dependency_libs; do |
| 7747 | case "$dep" in |
| 7748 | -L*) |
| 7749 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 7750 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 7751 | haveit= |
| 7752 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 7753 | if test -n "$GCC"; then |
| 7754 | case $host_os in |
| 7755 | linux*) haveit=yes;; |
| 7756 | esac |
| 7757 | fi |
| 7758 | fi |
| 7759 | if test -z "$haveit"; then |
| 7760 | haveit= |
| 7761 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7762 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7763 | acl_save_prefix="$prefix" |
| 7764 | prefix="$acl_final_prefix" |
| 7765 | acl_save_exec_prefix="$exec_prefix" |
| 7766 | exec_prefix="$acl_final_exec_prefix" |
| 7767 | eval x=\"$x\" |
| 7768 | exec_prefix="$acl_save_exec_prefix" |
| 7769 | prefix="$acl_save_prefix" |
| 7770 | |
| 7771 | if test "X$x" = "X-L$additional_libdir"; then |
| 7772 | haveit=yes |
| 7773 | break |
| 7774 | fi |
| 7775 | done |
| 7776 | if test -z "$haveit"; then |
| 7777 | if test -d "$additional_libdir"; then |
| 7778 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 7779 | fi |
| 7780 | fi |
| 7781 | haveit= |
| 7782 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7783 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7784 | acl_save_prefix="$prefix" |
| 7785 | prefix="$acl_final_prefix" |
| 7786 | acl_save_exec_prefix="$exec_prefix" |
| 7787 | exec_prefix="$acl_final_exec_prefix" |
| 7788 | eval x=\"$x\" |
| 7789 | exec_prefix="$acl_save_exec_prefix" |
| 7790 | prefix="$acl_save_prefix" |
| 7791 | |
| 7792 | if test "X$x" = "X-L$additional_libdir"; then |
| 7793 | haveit=yes |
| 7794 | break |
| 7795 | fi |
| 7796 | done |
| 7797 | if test -z "$haveit"; then |
| 7798 | if test -d "$additional_libdir"; then |
| 7799 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 7800 | fi |
| 7801 | fi |
| 7802 | fi |
| 7803 | fi |
| 7804 | ;; |
| 7805 | -R*) |
| 7806 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 7807 | if test "$enable_rpath" != no; then |
| 7808 | haveit= |
| 7809 | for x in $rpathdirs; do |
| 7810 | if test "X$x" = "X$dir"; then |
| 7811 | haveit=yes |
| 7812 | break |
| 7813 | fi |
| 7814 | done |
| 7815 | if test -z "$haveit"; then |
| 7816 | rpathdirs="$rpathdirs $dir" |
| 7817 | fi |
| 7818 | haveit= |
| 7819 | for x in $ltrpathdirs; do |
| 7820 | if test "X$x" = "X$dir"; then |
| 7821 | haveit=yes |
| 7822 | break |
| 7823 | fi |
| 7824 | done |
| 7825 | if test -z "$haveit"; then |
| 7826 | ltrpathdirs="$ltrpathdirs $dir" |
| 7827 | fi |
| 7828 | fi |
| 7829 | ;; |
| 7830 | -l*) |
| 7831 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 7832 | ;; |
| 7833 | *.la) |
| 7834 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 7835 | ;; |
| 7836 | *) |
| 7837 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 7838 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 7839 | ;; |
| 7840 | esac |
| 7841 | done |
| 7842 | fi |
| 7843 | else |
| 7844 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7845 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 7846 | fi |
| 7847 | fi |
| 7848 | fi |
| 7849 | done |
| 7850 | done |
| 7851 | if test "X$rpathdirs" != "X"; then |
| 7852 | if test -n "$hardcode_libdir_separator"; then |
| 7853 | alldirs= |
| 7854 | for found_dir in $rpathdirs; do |
| 7855 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 7856 | done |
| 7857 | acl_save_libdir="$libdir" |
| 7858 | libdir="$alldirs" |
| 7859 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 7860 | libdir="$acl_save_libdir" |
| 7861 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 7862 | else |
| 7863 | for found_dir in $rpathdirs; do |
| 7864 | acl_save_libdir="$libdir" |
| 7865 | libdir="$found_dir" |
| 7866 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 7867 | libdir="$acl_save_libdir" |
| 7868 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 7869 | done |
| 7870 | fi |
| 7871 | fi |
| 7872 | if test "X$ltrpathdirs" != "X"; then |
| 7873 | for found_dir in $ltrpathdirs; do |
| 7874 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 7875 | done |
| 7876 | fi |
| 7877 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7878 | |
| 7879 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7880 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7881 | |
| 7882 | |
| 7883 | |
| 7884 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7885 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 7886 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7887 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7888 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7889 | |
| 7890 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7891 | |
| 7892 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7893 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7894 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7895 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7896 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7897 | do : |
| 7898 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7899 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 7900 | eval as_val=\$$as_ac_Header |
| 7901 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7902 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7903 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7904 | _ACEOF |
| 7905 | |
| 7906 | fi |
| 7907 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7908 | done |
| 7909 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7910 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7911 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 7912 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 7913 | __fsetlocking |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7914 | do : |
| 7915 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7916 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 7917 | eval as_val=\$$as_ac_var |
| 7918 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7919 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7920 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7921 | _ACEOF |
| 7922 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7923 | fi |
| 7924 | done |
| 7925 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7926 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7927 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7929 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7930 | if test "${ac_cv_have_decl__snprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7931 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7932 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7934 | /* end confdefs.h. */ |
| 7935 | #include <stdio.h> |
| 7936 | int |
| 7937 | main () |
| 7938 | { |
| 7939 | |
| 7940 | #ifndef _snprintf |
| 7941 | char *p = (char *) _snprintf; |
| 7942 | #endif |
| 7943 | |
| 7944 | ; |
| 7945 | return 0; |
| 7946 | } |
| 7947 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7948 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7949 | ac_cv_have_decl__snprintf=yes |
| 7950 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7951 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7952 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7954 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7956 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7957 | if test $ac_cv_have_decl__snprintf = yes; then |
| 7958 | gt_value=1 |
| 7959 | else |
| 7960 | gt_value=0 |
| 7961 | fi |
| 7962 | |
| 7963 | cat >>confdefs.h <<_ACEOF |
| 7964 | #define HAVE_DECL__SNPRINTF $gt_value |
| 7965 | _ACEOF |
| 7966 | |
| 7967 | |
| 7968 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7970 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7971 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7972 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7973 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7975 | /* end confdefs.h. */ |
| 7976 | #include <stdio.h> |
| 7977 | int |
| 7978 | main () |
| 7979 | { |
| 7980 | |
| 7981 | #ifndef _snwprintf |
| 7982 | char *p = (char *) _snwprintf; |
| 7983 | #endif |
| 7984 | |
| 7985 | ; |
| 7986 | return 0; |
| 7987 | } |
| 7988 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7989 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7990 | ac_cv_have_decl__snwprintf=yes |
| 7991 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7992 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7993 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7995 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7997 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7998 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 7999 | gt_value=1 |
| 8000 | else |
| 8001 | gt_value=0 |
| 8002 | fi |
| 8003 | |
| 8004 | cat >>confdefs.h <<_ACEOF |
| 8005 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8006 | _ACEOF |
| 8007 | |
| 8008 | |
| 8009 | |
| 8010 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8012 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8013 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8014 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8015 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8017 | /* end confdefs.h. */ |
| 8018 | #include <stdio.h> |
| 8019 | int |
| 8020 | main () |
| 8021 | { |
| 8022 | |
| 8023 | #ifndef feof_unlocked |
| 8024 | char *p = (char *) feof_unlocked; |
| 8025 | #endif |
| 8026 | |
| 8027 | ; |
| 8028 | return 0; |
| 8029 | } |
| 8030 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8031 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8032 | ac_cv_have_decl_feof_unlocked=yes |
| 8033 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8034 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8035 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8037 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8039 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8040 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8041 | gt_value=1 |
| 8042 | else |
| 8043 | gt_value=0 |
| 8044 | fi |
| 8045 | |
| 8046 | cat >>confdefs.h <<_ACEOF |
| 8047 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8048 | _ACEOF |
| 8049 | |
| 8050 | |
| 8051 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8053 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8054 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8055 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8056 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8058 | /* end confdefs.h. */ |
| 8059 | #include <stdio.h> |
| 8060 | int |
| 8061 | main () |
| 8062 | { |
| 8063 | |
| 8064 | #ifndef fgets_unlocked |
| 8065 | char *p = (char *) fgets_unlocked; |
| 8066 | #endif |
| 8067 | |
| 8068 | ; |
| 8069 | return 0; |
| 8070 | } |
| 8071 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8072 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8073 | ac_cv_have_decl_fgets_unlocked=yes |
| 8074 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8075 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8076 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8078 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8080 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8081 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8082 | gt_value=1 |
| 8083 | else |
| 8084 | gt_value=0 |
| 8085 | fi |
| 8086 | |
| 8087 | cat >>confdefs.h <<_ACEOF |
| 8088 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8089 | _ACEOF |
| 8090 | |
| 8091 | |
| 8092 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8094 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8095 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8096 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8097 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8099 | /* end confdefs.h. */ |
| 8100 | #include <stdio.h> |
| 8101 | int |
| 8102 | main () |
| 8103 | { |
| 8104 | |
| 8105 | #ifndef getc_unlocked |
| 8106 | char *p = (char *) getc_unlocked; |
| 8107 | #endif |
| 8108 | |
| 8109 | ; |
| 8110 | return 0; |
| 8111 | } |
| 8112 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8113 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8114 | ac_cv_have_decl_getc_unlocked=yes |
| 8115 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8116 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8117 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8119 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8121 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8122 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8123 | gt_value=1 |
| 8124 | else |
| 8125 | gt_value=0 |
| 8126 | fi |
| 8127 | |
| 8128 | cat >>confdefs.h <<_ACEOF |
| 8129 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8130 | _ACEOF |
| 8131 | |
| 8132 | |
| 8133 | |
| 8134 | case $gt_cv_func_printf_posix in |
| 8135 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8136 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8137 | esac |
| 8138 | |
| 8139 | if test "$ac_cv_func_asprintf" = yes; then |
| 8140 | HAVE_ASPRINTF=1 |
| 8141 | else |
| 8142 | HAVE_ASPRINTF=0 |
| 8143 | fi |
| 8144 | |
| 8145 | if test "$ac_cv_func_snprintf" = yes; then |
| 8146 | HAVE_SNPRINTF=1 |
| 8147 | else |
| 8148 | HAVE_SNPRINTF=0 |
| 8149 | fi |
| 8150 | |
| 8151 | if test "$ac_cv_func_wprintf" = yes; then |
| 8152 | HAVE_WPRINTF=1 |
| 8153 | else |
| 8154 | HAVE_WPRINTF=0 |
| 8155 | fi |
| 8156 | |
| 8157 | |
| 8158 | |
| 8159 | |
| 8160 | |
| 8161 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8162 | |
| 8163 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8164 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8165 | for element in $INCICONV; do |
| 8166 | haveit= |
| 8167 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8168 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8169 | acl_save_prefix="$prefix" |
| 8170 | prefix="$acl_final_prefix" |
| 8171 | acl_save_exec_prefix="$exec_prefix" |
| 8172 | exec_prefix="$acl_final_exec_prefix" |
| 8173 | eval x=\"$x\" |
| 8174 | exec_prefix="$acl_save_exec_prefix" |
| 8175 | prefix="$acl_save_prefix" |
| 8176 | |
| 8177 | if test "X$x" = "X$element"; then |
| 8178 | haveit=yes |
| 8179 | break |
| 8180 | fi |
| 8181 | done |
| 8182 | if test -z "$haveit"; then |
| 8183 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8184 | fi |
| 8185 | done |
| 8186 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8187 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8189 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8190 | if test "${am_cv_func_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8191 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8192 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8193 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8194 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8195 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8197 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8198 | #include <stdlib.h> |
| 8199 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8200 | int |
| 8201 | main () |
| 8202 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8203 | iconv_t cd = iconv_open("",""); |
| 8204 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8205 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8206 | ; |
| 8207 | return 0; |
| 8208 | } |
| 8209 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8210 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8211 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8212 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8213 | rm -f core conftest.err conftest.$ac_objext \ |
| 8214 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8215 | if test "$am_cv_func_iconv" != yes; then |
| 8216 | am_save_LIBS="$LIBS" |
| 8217 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8219 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8220 | #include <stdlib.h> |
| 8221 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8222 | int |
| 8223 | main () |
| 8224 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8225 | iconv_t cd = iconv_open("",""); |
| 8226 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8227 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8228 | ; |
| 8229 | return 0; |
| 8230 | } |
| 8231 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8232 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8233 | am_cv_lib_iconv=yes |
| 8234 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8235 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8236 | rm -f core conftest.err conftest.$ac_objext \ |
| 8237 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8238 | LIBS="$am_save_LIBS" |
| 8239 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8240 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8241 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8243 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8244 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8245 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8246 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8247 | |
| 8248 | fi |
| 8249 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8251 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8253 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8254 | else |
| 8255 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8256 | LIBICONV= |
| 8257 | LTLIBICONV= |
| 8258 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8259 | |
| 8260 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8261 | |
| 8262 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8264 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8265 | if test "${am_cv_proto_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8266 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8267 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8268 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8270 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8271 | |
| 8272 | #include <stdlib.h> |
| 8273 | #include <iconv.h> |
| 8274 | extern |
| 8275 | #ifdef __cplusplus |
| 8276 | "C" |
| 8277 | #endif |
| 8278 | #if defined(__STDC__) || defined(__cplusplus) |
| 8279 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8280 | #else |
| 8281 | size_t iconv(); |
| 8282 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8283 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8284 | int |
| 8285 | main () |
| 8286 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8287 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8288 | ; |
| 8289 | return 0; |
| 8290 | } |
| 8291 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8292 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8293 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8294 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8295 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8296 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8298 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8299 | fi |
| 8300 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8301 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8303 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8304 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8305 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8306 | |
| 8307 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8308 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8309 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8310 | |
| 8311 | fi |
| 8312 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8313 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8315 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8316 | if test "${am_cv_langinfo_codeset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8317 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8318 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8320 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8321 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8322 | int |
| 8323 | main () |
| 8324 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8325 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8326 | ; |
| 8327 | return 0; |
| 8328 | } |
| 8329 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8330 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8331 | am_cv_langinfo_codeset=yes |
| 8332 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8333 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8334 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8335 | rm -f core conftest.err conftest.$ac_objext \ |
| 8336 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8337 | |
| 8338 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8340 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8341 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8342 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8343 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8344 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8345 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8346 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8347 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8348 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8350 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8351 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8352 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8353 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8355 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8356 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8357 | int |
| 8358 | main () |
| 8359 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8360 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8361 | ; |
| 8362 | return 0; |
| 8363 | } |
| 8364 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8365 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8366 | am_cv_val_LC_MESSAGES=yes |
| 8367 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8368 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8369 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8370 | rm -f core conftest.err conftest.$ac_objext \ |
| 8371 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8372 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8374 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8375 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8376 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8377 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8378 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8379 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8380 | |
| 8381 | fi |
| 8382 | |
| 8383 | for ac_prog in bison |
| 8384 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8385 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8386 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8388 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8389 | if test "${ac_cv_prog_INTLBISON+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8390 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8391 | else |
| 8392 | if test -n "$INTLBISON"; then |
| 8393 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8394 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8396 | for as_dir in $PATH |
| 8397 | do |
| 8398 | IFS=$as_save_IFS |
| 8399 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8400 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8402 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8404 | break 2 |
| 8405 | fi |
| 8406 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8407 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8408 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8409 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8410 | fi |
| 8411 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8412 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8413 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8415 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8416 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8418 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8419 | fi |
| 8420 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8421 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8422 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8423 | done |
| 8424 | |
| 8425 | if test -z "$INTLBISON"; then |
| 8426 | ac_verc_fail=yes |
| 8427 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8429 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8430 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8431 | case $ac_prog_version in |
| 8432 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8433 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8434 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8435 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8436 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8438 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8439 | fi |
| 8440 | if test $ac_verc_fail = yes; then |
| 8441 | INTLBISON=: |
| 8442 | fi |
| 8443 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8444 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8445 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8446 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8447 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8448 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8449 | |
| 8450 | |
| 8451 | |
| 8452 | |
| 8453 | |
| 8454 | |
| 8455 | |
| 8456 | |
| 8457 | |
| 8458 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8460 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8461 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8462 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8463 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8464 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8465 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8466 | fi |
| 8467 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8469 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8470 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8471 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8472 | |
| 8473 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8474 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8475 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8476 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8477 | LIBINTL= |
| 8478 | LTLIBINTL= |
| 8479 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8480 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8481 | if test "$USE_NLS" = "yes"; then |
| 8482 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8483 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8485 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8486 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8487 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8488 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8489 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8490 | else |
| 8491 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8492 | fi |
| 8493 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8495 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8496 | |
| 8497 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8498 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8499 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8500 | |
| 8501 | |
| 8502 | |
| 8503 | |
| 8504 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8506 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8507 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8508 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8509 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8511 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8512 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8513 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8514 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8515 | int |
| 8516 | main () |
| 8517 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8518 | bindtextdomain ("", ""); |
| 8519 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8520 | ; |
| 8521 | return 0; |
| 8522 | } |
| 8523 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8524 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8525 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8526 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8527 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8528 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8529 | rm -f core conftest.err conftest.$ac_objext \ |
| 8530 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8531 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8533 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8534 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8535 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8536 | |
| 8537 | |
| 8538 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8539 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8540 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8541 | acl_save_prefix="$prefix" |
| 8542 | prefix="$acl_final_prefix" |
| 8543 | acl_save_exec_prefix="$exec_prefix" |
| 8544 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8545 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8546 | eval additional_includedir=\"$includedir\" |
| 8547 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8548 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8549 | exec_prefix="$acl_save_exec_prefix" |
| 8550 | prefix="$acl_save_prefix" |
| 8551 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8552 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8553 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8554 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8555 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8556 | if test "X$withval" = "Xno"; then |
| 8557 | use_additional=no |
| 8558 | else |
| 8559 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8560 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8561 | acl_save_prefix="$prefix" |
| 8562 | prefix="$acl_final_prefix" |
| 8563 | acl_save_exec_prefix="$exec_prefix" |
| 8564 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8565 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8566 | eval additional_includedir=\"$includedir\" |
| 8567 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8568 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8569 | exec_prefix="$acl_save_exec_prefix" |
| 8570 | prefix="$acl_save_prefix" |
| 8571 | |
| 8572 | else |
| 8573 | additional_includedir="$withval/include" |
| 8574 | additional_libdir="$withval/lib" |
| 8575 | fi |
| 8576 | fi |
| 8577 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8578 | fi |
| 8579 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8580 | LIBINTL= |
| 8581 | LTLIBINTL= |
| 8582 | INCINTL= |
| 8583 | rpathdirs= |
| 8584 | ltrpathdirs= |
| 8585 | names_already_handled= |
| 8586 | names_next_round='intl ' |
| 8587 | while test -n "$names_next_round"; do |
| 8588 | names_this_round="$names_next_round" |
| 8589 | names_next_round= |
| 8590 | for name in $names_this_round; do |
| 8591 | already_handled= |
| 8592 | for n in $names_already_handled; do |
| 8593 | if test "$n" = "$name"; then |
| 8594 | already_handled=yes |
| 8595 | break |
| 8596 | fi |
| 8597 | done |
| 8598 | if test -z "$already_handled"; then |
| 8599 | names_already_handled="$names_already_handled $name" |
| 8600 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8601 | eval value=\"\$HAVE_LIB$uppername\" |
| 8602 | if test -n "$value"; then |
| 8603 | if test "$value" = yes; then |
| 8604 | eval value=\"\$LIB$uppername\" |
| 8605 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8606 | eval value=\"\$LTLIB$uppername\" |
| 8607 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8608 | else |
| 8609 | : |
| 8610 | fi |
| 8611 | else |
| 8612 | found_dir= |
| 8613 | found_la= |
| 8614 | found_so= |
| 8615 | found_a= |
| 8616 | if test $use_additional = yes; then |
| 8617 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8618 | found_dir="$additional_libdir" |
| 8619 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8620 | if test -f "$additional_libdir/lib$name.la"; then |
| 8621 | found_la="$additional_libdir/lib$name.la" |
| 8622 | fi |
| 8623 | else |
| 8624 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8625 | found_dir="$additional_libdir" |
| 8626 | found_a="$additional_libdir/lib$name.$libext" |
| 8627 | if test -f "$additional_libdir/lib$name.la"; then |
| 8628 | found_la="$additional_libdir/lib$name.la" |
| 8629 | fi |
| 8630 | fi |
| 8631 | fi |
| 8632 | fi |
| 8633 | if test "X$found_dir" = "X"; then |
| 8634 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8635 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8636 | acl_save_prefix="$prefix" |
| 8637 | prefix="$acl_final_prefix" |
| 8638 | acl_save_exec_prefix="$exec_prefix" |
| 8639 | exec_prefix="$acl_final_exec_prefix" |
| 8640 | eval x=\"$x\" |
| 8641 | exec_prefix="$acl_save_exec_prefix" |
| 8642 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8643 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8644 | case "$x" in |
| 8645 | -L*) |
| 8646 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8647 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8648 | found_dir="$dir" |
| 8649 | found_so="$dir/lib$name.$shlibext" |
| 8650 | if test -f "$dir/lib$name.la"; then |
| 8651 | found_la="$dir/lib$name.la" |
| 8652 | fi |
| 8653 | else |
| 8654 | if test -f "$dir/lib$name.$libext"; then |
| 8655 | found_dir="$dir" |
| 8656 | found_a="$dir/lib$name.$libext" |
| 8657 | if test -f "$dir/lib$name.la"; then |
| 8658 | found_la="$dir/lib$name.la" |
| 8659 | fi |
| 8660 | fi |
| 8661 | fi |
| 8662 | ;; |
| 8663 | esac |
| 8664 | if test "X$found_dir" != "X"; then |
| 8665 | break |
| 8666 | fi |
| 8667 | done |
| 8668 | fi |
| 8669 | if test "X$found_dir" != "X"; then |
| 8670 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 8671 | if test "X$found_so" != "X"; then |
| 8672 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8673 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8674 | else |
| 8675 | haveit= |
| 8676 | for x in $ltrpathdirs; do |
| 8677 | if test "X$x" = "X$found_dir"; then |
| 8678 | haveit=yes |
| 8679 | break |
| 8680 | fi |
| 8681 | done |
| 8682 | if test -z "$haveit"; then |
| 8683 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8684 | fi |
| 8685 | if test "$hardcode_direct" = yes; then |
| 8686 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8687 | else |
| 8688 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8689 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8690 | haveit= |
| 8691 | for x in $rpathdirs; do |
| 8692 | if test "X$x" = "X$found_dir"; then |
| 8693 | haveit=yes |
| 8694 | break |
| 8695 | fi |
| 8696 | done |
| 8697 | if test -z "$haveit"; then |
| 8698 | rpathdirs="$rpathdirs $found_dir" |
| 8699 | fi |
| 8700 | else |
| 8701 | haveit= |
| 8702 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8703 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8704 | acl_save_prefix="$prefix" |
| 8705 | prefix="$acl_final_prefix" |
| 8706 | acl_save_exec_prefix="$exec_prefix" |
| 8707 | exec_prefix="$acl_final_exec_prefix" |
| 8708 | eval x=\"$x\" |
| 8709 | exec_prefix="$acl_save_exec_prefix" |
| 8710 | prefix="$acl_save_prefix" |
| 8711 | |
| 8712 | if test "X$x" = "X-L$found_dir"; then |
| 8713 | haveit=yes |
| 8714 | break |
| 8715 | fi |
| 8716 | done |
| 8717 | if test -z "$haveit"; then |
| 8718 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 8719 | fi |
| 8720 | if test "$hardcode_minus_L" != no; then |
| 8721 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8722 | else |
| 8723 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 8724 | fi |
| 8725 | fi |
| 8726 | fi |
| 8727 | fi |
| 8728 | else |
| 8729 | if test "X$found_a" != "X"; then |
| 8730 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 8731 | else |
| 8732 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 8733 | fi |
| 8734 | fi |
| 8735 | additional_includedir= |
| 8736 | case "$found_dir" in |
| 8737 | */lib | */lib/) |
| 8738 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8739 | additional_includedir="$basedir/include" |
| 8740 | ;; |
| 8741 | esac |
| 8742 | if test "X$additional_includedir" != "X"; then |
| 8743 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8744 | haveit= |
| 8745 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8746 | if test -n "$GCC"; then |
| 8747 | case $host_os in |
| 8748 | linux*) haveit=yes;; |
| 8749 | esac |
| 8750 | fi |
| 8751 | fi |
| 8752 | if test -z "$haveit"; then |
| 8753 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8754 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8755 | acl_save_prefix="$prefix" |
| 8756 | prefix="$acl_final_prefix" |
| 8757 | acl_save_exec_prefix="$exec_prefix" |
| 8758 | exec_prefix="$acl_final_exec_prefix" |
| 8759 | eval x=\"$x\" |
| 8760 | exec_prefix="$acl_save_exec_prefix" |
| 8761 | prefix="$acl_save_prefix" |
| 8762 | |
| 8763 | if test "X$x" = "X-I$additional_includedir"; then |
| 8764 | haveit=yes |
| 8765 | break |
| 8766 | fi |
| 8767 | done |
| 8768 | if test -z "$haveit"; then |
| 8769 | if test -d "$additional_includedir"; then |
| 8770 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 8771 | fi |
| 8772 | fi |
| 8773 | fi |
| 8774 | fi |
| 8775 | fi |
| 8776 | if test -n "$found_la"; then |
| 8777 | save_libdir="$libdir" |
| 8778 | case "$found_la" in |
| 8779 | */* | *\\*) . "$found_la" ;; |
| 8780 | *) . "./$found_la" ;; |
| 8781 | esac |
| 8782 | libdir="$save_libdir" |
| 8783 | for dep in $dependency_libs; do |
| 8784 | case "$dep" in |
| 8785 | -L*) |
| 8786 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8787 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8788 | haveit= |
| 8789 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8790 | if test -n "$GCC"; then |
| 8791 | case $host_os in |
| 8792 | linux*) haveit=yes;; |
| 8793 | esac |
| 8794 | fi |
| 8795 | fi |
| 8796 | if test -z "$haveit"; then |
| 8797 | haveit= |
| 8798 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8799 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8800 | acl_save_prefix="$prefix" |
| 8801 | prefix="$acl_final_prefix" |
| 8802 | acl_save_exec_prefix="$exec_prefix" |
| 8803 | exec_prefix="$acl_final_exec_prefix" |
| 8804 | eval x=\"$x\" |
| 8805 | exec_prefix="$acl_save_exec_prefix" |
| 8806 | prefix="$acl_save_prefix" |
| 8807 | |
| 8808 | if test "X$x" = "X-L$additional_libdir"; then |
| 8809 | haveit=yes |
| 8810 | break |
| 8811 | fi |
| 8812 | done |
| 8813 | if test -z "$haveit"; then |
| 8814 | if test -d "$additional_libdir"; then |
| 8815 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 8816 | fi |
| 8817 | fi |
| 8818 | haveit= |
| 8819 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8820 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8821 | acl_save_prefix="$prefix" |
| 8822 | prefix="$acl_final_prefix" |
| 8823 | acl_save_exec_prefix="$exec_prefix" |
| 8824 | exec_prefix="$acl_final_exec_prefix" |
| 8825 | eval x=\"$x\" |
| 8826 | exec_prefix="$acl_save_exec_prefix" |
| 8827 | prefix="$acl_save_prefix" |
| 8828 | |
| 8829 | if test "X$x" = "X-L$additional_libdir"; then |
| 8830 | haveit=yes |
| 8831 | break |
| 8832 | fi |
| 8833 | done |
| 8834 | if test -z "$haveit"; then |
| 8835 | if test -d "$additional_libdir"; then |
| 8836 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 8837 | fi |
| 8838 | fi |
| 8839 | fi |
| 8840 | fi |
| 8841 | ;; |
| 8842 | -R*) |
| 8843 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8844 | if test "$enable_rpath" != no; then |
| 8845 | haveit= |
| 8846 | for x in $rpathdirs; do |
| 8847 | if test "X$x" = "X$dir"; then |
| 8848 | haveit=yes |
| 8849 | break |
| 8850 | fi |
| 8851 | done |
| 8852 | if test -z "$haveit"; then |
| 8853 | rpathdirs="$rpathdirs $dir" |
| 8854 | fi |
| 8855 | haveit= |
| 8856 | for x in $ltrpathdirs; do |
| 8857 | if test "X$x" = "X$dir"; then |
| 8858 | haveit=yes |
| 8859 | break |
| 8860 | fi |
| 8861 | done |
| 8862 | if test -z "$haveit"; then |
| 8863 | ltrpathdirs="$ltrpathdirs $dir" |
| 8864 | fi |
| 8865 | fi |
| 8866 | ;; |
| 8867 | -l*) |
| 8868 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8869 | ;; |
| 8870 | *.la) |
| 8871 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8872 | ;; |
| 8873 | *) |
| 8874 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 8875 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 8876 | ;; |
| 8877 | esac |
| 8878 | done |
| 8879 | fi |
| 8880 | else |
| 8881 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 8882 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 8883 | fi |
| 8884 | fi |
| 8885 | fi |
| 8886 | done |
| 8887 | done |
| 8888 | if test "X$rpathdirs" != "X"; then |
| 8889 | if test -n "$hardcode_libdir_separator"; then |
| 8890 | alldirs= |
| 8891 | for found_dir in $rpathdirs; do |
| 8892 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8893 | done |
| 8894 | acl_save_libdir="$libdir" |
| 8895 | libdir="$alldirs" |
| 8896 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8897 | libdir="$acl_save_libdir" |
| 8898 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 8899 | else |
| 8900 | for found_dir in $rpathdirs; do |
| 8901 | acl_save_libdir="$libdir" |
| 8902 | libdir="$found_dir" |
| 8903 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8904 | libdir="$acl_save_libdir" |
| 8905 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 8906 | done |
| 8907 | fi |
| 8908 | fi |
| 8909 | if test "X$ltrpathdirs" != "X"; then |
| 8910 | for found_dir in $ltrpathdirs; do |
| 8911 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 8912 | done |
| 8913 | fi |
| 8914 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8916 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8917 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8918 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8919 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8920 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 8921 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 8922 | gt_save_LIBS="$LIBS" |
| 8923 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8925 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 8926 | #include <libintl.h> |
| 8927 | extern int _nl_msg_cat_cntr; |
| 8928 | extern |
| 8929 | #ifdef __cplusplus |
| 8930 | "C" |
| 8931 | #endif |
| 8932 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8933 | int |
| 8934 | main () |
| 8935 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 8936 | bindtextdomain ("", ""); |
| 8937 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8938 | ; |
| 8939 | return 0; |
| 8940 | } |
| 8941 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8942 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 8943 | gt_cv_func_gnugettext1_libintl=yes |
| 8944 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8945 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 8946 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8947 | rm -f core conftest.err conftest.$ac_objext \ |
| 8948 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 8949 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 8950 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8952 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8953 | #include <libintl.h> |
| 8954 | extern int _nl_msg_cat_cntr; |
| 8955 | extern |
| 8956 | #ifdef __cplusplus |
| 8957 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8958 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8959 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8960 | int |
| 8961 | main () |
| 8962 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8963 | bindtextdomain ("", ""); |
| 8964 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8965 | ; |
| 8966 | return 0; |
| 8967 | } |
| 8968 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8969 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8970 | LIBINTL="$LIBINTL $LIBICONV" |
| 8971 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 8972 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8973 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8974 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8975 | rm -f core conftest.err conftest.$ac_objext \ |
| 8976 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8977 | fi |
| 8978 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 8979 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8980 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8982 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8983 | fi |
| 8984 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8985 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 8986 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8987 | && test "$PACKAGE" != gettext-runtime \ |
| 8988 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8989 | gt_use_preinstalled_gnugettext=yes |
| 8990 | else |
| 8991 | LIBINTL= |
| 8992 | LTLIBINTL= |
| 8993 | INCINTL= |
| 8994 | fi |
| 8995 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8996 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8997 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 8998 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8999 | fi |
| 9000 | fi |
| 9001 | |
| 9002 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9003 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9004 | USE_INCLUDED_LIBINTL=yes |
| 9005 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9006 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9007 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9008 | fi |
| 9009 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9010 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9011 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9012 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9013 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9014 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9015 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9016 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9017 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9018 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9019 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9020 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9021 | else |
| 9022 | USE_NLS=no |
| 9023 | fi |
| 9024 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9025 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9027 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9029 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9030 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9032 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9033 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9034 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9035 | gt_source="external libintl" |
| 9036 | else |
| 9037 | gt_source="libc" |
| 9038 | fi |
| 9039 | else |
| 9040 | gt_source="included intl directory" |
| 9041 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9043 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9044 | fi |
| 9045 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9046 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9047 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9048 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9049 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9051 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9053 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9054 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9055 | for element in $INCINTL; do |
| 9056 | haveit= |
| 9057 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9058 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9059 | acl_save_prefix="$prefix" |
| 9060 | prefix="$acl_final_prefix" |
| 9061 | acl_save_exec_prefix="$exec_prefix" |
| 9062 | exec_prefix="$acl_final_exec_prefix" |
| 9063 | eval x=\"$x\" |
| 9064 | exec_prefix="$acl_save_exec_prefix" |
| 9065 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9066 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9067 | if test "X$x" = "X$element"; then |
| 9068 | haveit=yes |
| 9069 | break |
| 9070 | fi |
| 9071 | done |
| 9072 | if test -z "$haveit"; then |
| 9073 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9074 | fi |
| 9075 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9076 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9077 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9078 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9079 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9080 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9081 | |
| 9082 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9083 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9084 | |
| 9085 | fi |
| 9086 | |
| 9087 | POSUB=po |
| 9088 | fi |
| 9089 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9090 | |
| 9091 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9092 | BUILD_INCLUDED_LIBINTL=yes |
| 9093 | fi |
| 9094 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9095 | |
| 9096 | |
| 9097 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9098 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9099 | nls_cv_header_intl= |
| 9100 | nls_cv_header_libgt= |
| 9101 | |
| 9102 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9103 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9104 | |
| 9105 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9106 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9107 | |
| 9108 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9109 | |
| 9110 | |
| 9111 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9112 | INTLOBJS="\$(GETTOBJS)" |
| 9113 | fi |
| 9114 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9115 | |
| 9116 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9117 | |
| 9118 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9119 | |
| 9120 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9121 | |
| 9122 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9123 | |
| 9124 | |
| 9125 | |
| 9126 | |
| 9127 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9129 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9130 | set x ${MAKE-make} |
| 9131 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9132 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9133 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9134 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9135 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9136 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9137 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9138 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9139 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9140 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9141 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9142 | *@@@%%%=?*=@@@%%%*) |
| 9143 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9144 | *) |
| 9145 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9146 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9147 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9148 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9149 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9151 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9152 | SET_MAKE= |
| 9153 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9155 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9156 | SET_MAKE="MAKE=${MAKE-make}" |
| 9157 | fi |
| 9158 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9160 | $as_echo_n "checking for GNU make... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9161 | if test "${_cv_gnu_make_command+set}" = set; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9162 | $as_echo_n "(cached) " >&6 |
| 9163 | else |
| 9164 | _cv_gnu_make_command='' ; |
| 9165 | for a in "$MAKE" make gmake gnumake ; do |
| 9166 | if test -z "$a" ; then continue ; fi ; |
| 9167 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 9168 | _cv_gnu_make_command=$a ; |
| 9169 | break; |
| 9170 | fi |
| 9171 | done ; |
| 9172 | |
| 9173 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9175 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 9176 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 9177 | ifGNUmake='' ; |
| 9178 | ifNotGNUmake='#' ; |
| 9179 | else |
| 9180 | ifGNUmake='#' ; |
| 9181 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9183 | $as_echo "\"Not found\"" >&6; }; |
| 9184 | fi |
| 9185 | |
| 9186 | |
| 9187 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9188 | # Extract the first word of "ln", so it can be a program name with args. |
| 9189 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9191 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9192 | if test "${ac_cv_path_LN+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9193 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9194 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9195 | case $LN in |
| 9196 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9197 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9198 | ;; |
| 9199 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9201 | for as_dir in $PATH |
| 9202 | do |
| 9203 | IFS=$as_save_IFS |
| 9204 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9205 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9207 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9209 | break 2 |
| 9210 | fi |
| 9211 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9212 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9213 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9214 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9215 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9216 | ;; |
| 9217 | esac |
| 9218 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9219 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9220 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9222 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9223 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9225 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9226 | fi |
| 9227 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9228 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9230 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9231 | LN_S=$as_ln_s |
| 9232 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9234 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9235 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9237 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9238 | fi |
| 9239 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9240 | # Extract the first word of "mv", so it can be a program name with args. |
| 9241 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9243 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9244 | if test "${ac_cv_path_MV+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9245 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9246 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9247 | case $MV in |
| 9248 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9249 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 9250 | ;; |
| 9251 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9253 | for as_dir in $PATH |
| 9254 | do |
| 9255 | IFS=$as_save_IFS |
| 9256 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9257 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9259 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9261 | break 2 |
| 9262 | fi |
| 9263 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9264 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9265 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9266 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9267 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 9268 | ;; |
| 9269 | esac |
| 9270 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9271 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9272 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9274 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9275 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9277 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9278 | fi |
| 9279 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9280 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9281 | # Extract the first word of "cp", so it can be a program name with args. |
| 9282 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9284 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9285 | if test "${ac_cv_path_CP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9286 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9287 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9288 | case $CP in |
| 9289 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9290 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 9291 | ;; |
| 9292 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9294 | for as_dir in $PATH |
| 9295 | do |
| 9296 | IFS=$as_save_IFS |
| 9297 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9298 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9300 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9302 | break 2 |
| 9303 | fi |
| 9304 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9305 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9306 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9307 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9308 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 9309 | ;; |
| 9310 | esac |
| 9311 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9312 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9313 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9315 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9316 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9318 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9319 | fi |
| 9320 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9321 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9322 | # Extract the first word of "rm", so it can be a program name with args. |
| 9323 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9325 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9326 | if test "${ac_cv_path_RM+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9327 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9328 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9329 | case $RM in |
| 9330 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9331 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 9332 | ;; |
| 9333 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9335 | for as_dir in $PATH |
| 9336 | do |
| 9337 | IFS=$as_save_IFS |
| 9338 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9339 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9341 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9343 | break 2 |
| 9344 | fi |
| 9345 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9346 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9347 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9348 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9349 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 9350 | ;; |
| 9351 | esac |
| 9352 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9353 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9354 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9356 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9357 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9359 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9360 | fi |
| 9361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9362 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9363 | # Extract the first word of "chmod", so it can be a program name with args. |
| 9364 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9366 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9367 | if test "${ac_cv_path_CHMOD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9368 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9369 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9370 | case $CHMOD in |
| 9371 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9372 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 9373 | ;; |
| 9374 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9376 | for as_dir in $PATH |
| 9377 | do |
| 9378 | IFS=$as_save_IFS |
| 9379 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9380 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9381 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9382 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9384 | break 2 |
| 9385 | fi |
| 9386 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9387 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9388 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9389 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9390 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 9391 | ;; |
| 9392 | esac |
| 9393 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9394 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9395 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9397 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9398 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9400 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9401 | fi |
| 9402 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9403 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9404 | for ac_prog in gawk mawk nawk awk |
| 9405 | do |
| 9406 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9407 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9409 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9410 | if test "${ac_cv_prog_AWK+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9411 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9412 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9413 | if test -n "$AWK"; then |
| 9414 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9415 | else |
| 9416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9417 | for as_dir in $PATH |
| 9418 | do |
| 9419 | IFS=$as_save_IFS |
| 9420 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9421 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9422 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9423 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9425 | break 2 |
| 9426 | fi |
| 9427 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9428 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9429 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9430 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9431 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9432 | fi |
| 9433 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9434 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9436 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9437 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9439 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9440 | fi |
| 9441 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9442 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9443 | test -n "$AWK" && break |
| 9444 | done |
| 9445 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9447 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9448 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9449 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9450 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9451 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 9452 | then ac_cv_path_EGREP="$GREP -E" |
| 9453 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9454 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9455 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9456 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 9457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9458 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 9459 | do |
| 9460 | IFS=$as_save_IFS |
| 9461 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9462 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9463 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9464 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 9465 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 9466 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9467 | # Check for GNU $ac_path_EGREP |
| 9468 | case `"$ac_path_EGREP" --version 2>&1` in |
| 9469 | *GNU*) |
| 9470 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 9471 | *) |
| 9472 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9473 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9474 | while : |
| 9475 | do |
| 9476 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 9477 | mv "conftest.tmp" "conftest.in" |
| 9478 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9479 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9480 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 9481 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9482 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9483 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 9484 | # Best one so far, save it but keep looking for a better one |
| 9485 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 9486 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9487 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9488 | # 10*(2^10) chars as input seems more than enough |
| 9489 | test $ac_count -gt 10 && break |
| 9490 | done |
| 9491 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 9492 | esac |
| 9493 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9494 | $ac_path_EGREP_found && break 3 |
| 9495 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9496 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9497 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9498 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9499 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9500 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9501 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9502 | else |
| 9503 | ac_cv_path_EGREP=$EGREP |
| 9504 | fi |
| 9505 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9506 | fi |
| 9507 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9509 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9510 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9511 | |
| 9512 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9513 | # Extract the first word of "sed", so it can be a program name with args. |
| 9514 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9516 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9517 | if test "${ac_cv_path_SED+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9518 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9519 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9520 | case $SED in |
| 9521 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9522 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 9523 | ;; |
| 9524 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9526 | for as_dir in $PATH |
| 9527 | do |
| 9528 | IFS=$as_save_IFS |
| 9529 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9530 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9532 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9534 | break 2 |
| 9535 | fi |
| 9536 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9537 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9538 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9539 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9540 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 9541 | ;; |
| 9542 | esac |
| 9543 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9544 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9545 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9547 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9548 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9550 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9551 | fi |
| 9552 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9553 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9554 | # Extract the first word of "perl", so it can be a program name with args. |
| 9555 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9557 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9558 | if test "${ac_cv_path_PERL+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9559 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9560 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9561 | case $PERL in |
| 9562 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9563 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 9564 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9565 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9567 | for as_dir in $PATH |
| 9568 | do |
| 9569 | IFS=$as_save_IFS |
| 9570 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9571 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9573 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9575 | break 2 |
| 9576 | fi |
| 9577 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9578 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9579 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9580 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9581 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 9582 | ;; |
| 9583 | esac |
| 9584 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9585 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9586 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9588 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9589 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9591 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9592 | fi |
| 9593 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9594 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9595 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 9596 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9598 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9599 | if test "${ac_cv_path_LDCONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9600 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9601 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9602 | case $LDCONFIG in |
| 9603 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9604 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 9605 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9606 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9608 | for as_dir in $PATH |
| 9609 | do |
| 9610 | IFS=$as_save_IFS |
| 9611 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9612 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9614 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9616 | break 2 |
| 9617 | fi |
| 9618 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9619 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9620 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9621 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9622 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 9623 | ;; |
| 9624 | esac |
| 9625 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9626 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9627 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9629 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9630 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9632 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9633 | fi |
| 9634 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9635 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9636 | if test -n "$ac_tool_prefix"; then |
| 9637 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9638 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9640 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9641 | if test "${ac_cv_prog_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9642 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9643 | else |
| 9644 | if test -n "$AR"; then |
| 9645 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9646 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9648 | for as_dir in $PATH |
| 9649 | do |
| 9650 | IFS=$as_save_IFS |
| 9651 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9652 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9654 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9656 | break 2 |
| 9657 | fi |
| 9658 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9659 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9660 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9661 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9662 | fi |
| 9663 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9664 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9665 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9667 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9668 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9670 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9671 | fi |
| 9672 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9673 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9674 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9675 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9676 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9677 | # Extract the first word of "ar", so it can be a program name with args. |
| 9678 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9680 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9681 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9682 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9683 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9684 | if test -n "$ac_ct_AR"; then |
| 9685 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9686 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9688 | for as_dir in $PATH |
| 9689 | do |
| 9690 | IFS=$as_save_IFS |
| 9691 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9692 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9694 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9696 | break 2 |
| 9697 | fi |
| 9698 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9699 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9700 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9701 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9702 | fi |
| 9703 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9704 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 9705 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9707 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9708 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9710 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9711 | fi |
| 9712 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9713 | if test "x$ac_ct_AR" = x; then |
| 9714 | AR="ar" |
| 9715 | else |
| 9716 | case $cross_compiling:$ac_tool_warned in |
| 9717 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9719 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9720 | ac_tool_warned=yes ;; |
| 9721 | esac |
| 9722 | AR=$ac_ct_AR |
| 9723 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9724 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9725 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9726 | fi |
| 9727 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9728 | if test -n "$ac_tool_prefix"; then |
| 9729 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9730 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9732 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9733 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9734 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9735 | else |
| 9736 | if test -n "$RANLIB"; then |
| 9737 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 9738 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9740 | for as_dir in $PATH |
| 9741 | do |
| 9742 | IFS=$as_save_IFS |
| 9743 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9744 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9746 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9748 | break 2 |
| 9749 | fi |
| 9750 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9751 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9752 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9753 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9754 | fi |
| 9755 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9756 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9757 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9759 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9760 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9762 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9763 | fi |
| 9764 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9765 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9766 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9767 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9768 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9769 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 9770 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9772 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9773 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9774 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9775 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9776 | if test -n "$ac_ct_RANLIB"; then |
| 9777 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9778 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9780 | for as_dir in $PATH |
| 9781 | do |
| 9782 | IFS=$as_save_IFS |
| 9783 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9784 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9786 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9788 | break 2 |
| 9789 | fi |
| 9790 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9791 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9792 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9793 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9794 | fi |
| 9795 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9796 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 9797 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9799 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9800 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9802 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9803 | fi |
| 9804 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9805 | if test "x$ac_ct_RANLIB" = x; then |
| 9806 | RANLIB=":" |
| 9807 | else |
| 9808 | case $cross_compiling:$ac_tool_warned in |
| 9809 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9812 | ac_tool_warned=yes ;; |
| 9813 | esac |
| 9814 | RANLIB=$ac_ct_RANLIB |
| 9815 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9816 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9817 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9818 | fi |
| 9819 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9820 | if test -n "$ac_tool_prefix"; then |
| 9821 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9822 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9824 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9825 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9826 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9827 | else |
| 9828 | if test -n "$STRIP"; then |
| 9829 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 9830 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9832 | for as_dir in $PATH |
| 9833 | do |
| 9834 | IFS=$as_save_IFS |
| 9835 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9836 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9838 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9840 | break 2 |
| 9841 | fi |
| 9842 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9843 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9844 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9845 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9846 | fi |
| 9847 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9848 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9849 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9851 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9852 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9854 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9855 | fi |
| 9856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9857 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9858 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9859 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9860 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9861 | # Extract the first word of "strip", so it can be a program name with args. |
| 9862 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9864 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9865 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9866 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9867 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9868 | if test -n "$ac_ct_STRIP"; then |
| 9869 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9870 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9872 | for as_dir in $PATH |
| 9873 | do |
| 9874 | IFS=$as_save_IFS |
| 9875 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9876 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9878 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9880 | break 2 |
| 9881 | fi |
| 9882 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9883 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9884 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9885 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9886 | fi |
| 9887 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9888 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 9889 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9891 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9892 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9894 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9895 | fi |
| 9896 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9897 | if test "x$ac_ct_STRIP" = x; then |
| 9898 | STRIP=":" |
| 9899 | else |
| 9900 | case $cross_compiling:$ac_tool_warned in |
| 9901 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9904 | ac_tool_warned=yes ;; |
| 9905 | esac |
| 9906 | STRIP=$ac_ct_STRIP |
| 9907 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9908 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9909 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9910 | fi |
| 9911 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9912 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 9913 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9915 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9916 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9917 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9918 | else |
| 9919 | if test -n "$MAKEINFO"; then |
| 9920 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 9921 | else |
| 9922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9923 | for as_dir in $PATH |
| 9924 | do |
| 9925 | IFS=$as_save_IFS |
| 9926 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9927 | for ac_exec_ext in '' $ac_executable_extensions; do |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9929 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9931 | break 2 |
| 9932 | fi |
| 9933 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9934 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9935 | IFS=$as_save_IFS |
| 9936 | |
| 9937 | fi |
| 9938 | fi |
| 9939 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 9940 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9942 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9943 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9945 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9946 | fi |
| 9947 | |
| 9948 | |
| 9949 | if test "_$MAKEINFO" = "_"; then |
| 9950 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 9951 | else |
| 9952 | case "$MAKEINFO" in |
| 9953 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9955 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9956 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9957 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 9958 | ;; |
| 9959 | *) |
| 9960 | ;; |
| 9961 | esac |
| 9962 | fi |
| 9963 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9964 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 9965 | # See if we need a separate native compiler. |
| 9966 | if test $cross_compiling = no; then |
| 9967 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9968 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 9969 | else |
| 9970 | for ac_prog in gcc cc |
| 9971 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9972 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 9973 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9975 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9976 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9977 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 9978 | else |
| 9979 | if test -n "$BUILD_CC"; then |
| 9980 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 9981 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9983 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9984 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9985 | IFS=$as_save_IFS |
| 9986 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9987 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9989 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9991 | break 2 |
| 9992 | fi |
| 9993 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9994 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9995 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9996 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9997 | fi |
| 9998 | fi |
| 9999 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10000 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10002 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10003 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10005 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10006 | fi |
| 10007 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10008 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10009 | test -n "$BUILD_CC" && break |
| 10010 | done |
| 10011 | |
| 10012 | fi |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10013 | for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10014 | do : |
| 10015 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10016 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10017 | eval as_val=\$$as_ac_Header |
| 10018 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10019 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10020 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10021 | _ACEOF |
| 10022 | |
| 10023 | fi |
| 10024 | |
| 10025 | done |
| 10026 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10027 | for ac_header in sys/disk.h sys/mount.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10028 | do : |
| 10029 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10030 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10031 | #if HAVE_SYS_QUEUE_H |
| 10032 | #include <sys/queue.h> |
| 10033 | #endif |
| 10034 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10035 | " |
| 10036 | eval as_val=\$$as_ac_Header |
| 10037 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10038 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10039 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10040 | _ACEOF |
| 10041 | |
| 10042 | fi |
| 10043 | |
| 10044 | done |
| 10045 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10046 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10047 | do : |
| 10048 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10049 | #if HAVE_SYS_TYPES_H |
| 10050 | #include <sys/types.h> |
| 10051 | #endif |
| 10052 | #if HAVE_SYS_SOCKET |
| 10053 | #include <sys/socket.h> |
| 10054 | #endif |
| 10055 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10056 | " |
| 10057 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10058 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10059 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10060 | _ACEOF |
| 10061 | |
| 10062 | fi |
| 10063 | |
| 10064 | done |
| 10065 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10066 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10067 | do : |
| 10068 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| 10069 | if test "x$ac_cv_func_vprintf" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10070 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10071 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10072 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10073 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10074 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 10075 | if test "x$ac_cv_func__doprnt" = x""yes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10076 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10077 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10078 | |
| 10079 | fi |
| 10080 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10081 | fi |
| 10082 | done |
| 10083 | |
| 10084 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10085 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 10086 | " |
| 10087 | if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then : |
| 10088 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10089 | |
| 10090 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10091 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10092 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 10093 | " |
| 10094 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
| 10095 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10096 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10097 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10098 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10099 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 10100 | " |
| 10101 | if test "x$ac_cv_have_decl_llseek" = x""yes; then : |
| 10102 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10103 | |
| 10104 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10105 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10106 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10107 | #define _LARGEFILE64_SOURCE |
| 10108 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10109 | " |
| 10110 | if test "x$ac_cv_have_decl_lseek64" = x""yes; then : |
| 10111 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 10112 | |
| 10113 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10114 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10115 | # The cast to long int works around a bug in the HP C Compiler |
| 10116 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10117 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10118 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10120 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10121 | if test "${ac_cv_sizeof_short+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10122 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10123 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10124 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10125 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10126 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10127 | if test "$ac_cv_type_short" = yes; then |
| 10128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10129 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10130 | { as_fn_set_status 77 |
| 10131 | as_fn_error "cannot compute sizeof (short) |
| 10132 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10133 | else |
| 10134 | ac_cv_sizeof_short=0 |
| 10135 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10136 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10137 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10138 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10140 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10141 | |
| 10142 | |
| 10143 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10144 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10145 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10146 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10147 | |
| 10148 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10149 | # The cast to long int works around a bug in the HP C Compiler |
| 10150 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10151 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10152 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10154 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10155 | if test "${ac_cv_sizeof_int+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10156 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10157 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10158 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10159 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10160 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10161 | if test "$ac_cv_type_int" = yes; then |
| 10162 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10163 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10164 | { as_fn_set_status 77 |
| 10165 | as_fn_error "cannot compute sizeof (int) |
| 10166 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10167 | else |
| 10168 | ac_cv_sizeof_int=0 |
| 10169 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10170 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10171 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10172 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10174 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10175 | |
| 10176 | |
| 10177 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10178 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10179 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10180 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10181 | |
| 10182 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10183 | # The cast to long int works around a bug in the HP C Compiler |
| 10184 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10185 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10186 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10188 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10189 | if test "${ac_cv_sizeof_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10190 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10191 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10192 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10193 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10194 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10195 | if test "$ac_cv_type_long" = yes; then |
| 10196 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10198 | { as_fn_set_status 77 |
| 10199 | as_fn_error "cannot compute sizeof (long) |
| 10200 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10201 | else |
| 10202 | ac_cv_sizeof_long=0 |
| 10203 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10204 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10205 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10206 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10208 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10209 | |
| 10210 | |
| 10211 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10212 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10213 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10214 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10215 | |
| 10216 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10217 | # The cast to long int works around a bug in the HP C Compiler |
| 10218 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10219 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10220 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10222 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10223 | if test "${ac_cv_sizeof_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10224 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10225 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10226 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10227 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10228 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10229 | if test "$ac_cv_type_long_long" = yes; then |
| 10230 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10231 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10232 | { as_fn_set_status 77 |
| 10233 | as_fn_error "cannot compute sizeof (long long) |
| 10234 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10235 | else |
| 10236 | ac_cv_sizeof_long_long=0 |
| 10237 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10238 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10239 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10240 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10242 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10243 | |
| 10244 | |
| 10245 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10246 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10247 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10248 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10249 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10250 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10251 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 10252 | SIZEOF_INT=$ac_cv_sizeof_int |
| 10253 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10254 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 10255 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10256 | |
| 10257 | |
| 10258 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10260 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10261 | if test "${ac_cv_c_bigendian+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10262 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10263 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10264 | ac_cv_c_bigendian=unknown |
| 10265 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10267 | /* end confdefs.h. */ |
| 10268 | #ifndef __APPLE_CC__ |
| 10269 | not a universal capable compiler |
| 10270 | #endif |
| 10271 | typedef int dummy; |
| 10272 | |
| 10273 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10274 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10275 | |
| 10276 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10277 | # there are at least two -arch flags with different values. |
| 10278 | ac_arch= |
| 10279 | ac_prev= |
| 10280 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 10281 | if test -n "$ac_prev"; then |
| 10282 | case $ac_word in |
| 10283 | i?86 | x86_64 | ppc | ppc64) |
| 10284 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 10285 | ac_arch=$ac_word |
| 10286 | else |
| 10287 | ac_cv_c_bigendian=universal |
| 10288 | break |
| 10289 | fi |
| 10290 | ;; |
| 10291 | esac |
| 10292 | ac_prev= |
| 10293 | elif test "x$ac_word" = "x-arch"; then |
| 10294 | ac_prev=arch |
| 10295 | fi |
| 10296 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10297 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10299 | if test $ac_cv_c_bigendian = unknown; then |
| 10300 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10302 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10303 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10304 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10305 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10306 | int |
| 10307 | main () |
| 10308 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10309 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 10310 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 10311 | && LITTLE_ENDIAN) |
| 10312 | bogus endian macros |
| 10313 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10314 | |
| 10315 | ; |
| 10316 | return 0; |
| 10317 | } |
| 10318 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10319 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10320 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10322 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10323 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10324 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10325 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10326 | int |
| 10327 | main () |
| 10328 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10329 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10330 | not big endian |
| 10331 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10332 | |
| 10333 | ; |
| 10334 | return 0; |
| 10335 | } |
| 10336 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10337 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10338 | ac_cv_c_bigendian=yes |
| 10339 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10340 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10341 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10343 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10345 | fi |
| 10346 | if test $ac_cv_c_bigendian = unknown; then |
| 10347 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10349 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10350 | #include <limits.h> |
| 10351 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10352 | int |
| 10353 | main () |
| 10354 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10355 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 10356 | bogus endian macros |
| 10357 | #endif |
| 10358 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10359 | ; |
| 10360 | return 0; |
| 10361 | } |
| 10362 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10363 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10364 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10366 | /* end confdefs.h. */ |
| 10367 | #include <limits.h> |
| 10368 | |
| 10369 | int |
| 10370 | main () |
| 10371 | { |
| 10372 | #ifndef _BIG_ENDIAN |
| 10373 | not big endian |
| 10374 | #endif |
| 10375 | |
| 10376 | ; |
| 10377 | return 0; |
| 10378 | } |
| 10379 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10380 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10381 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10382 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10383 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10384 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10386 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10388 | fi |
| 10389 | if test $ac_cv_c_bigendian = unknown; then |
| 10390 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10391 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10392 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10394 | /* end confdefs.h. */ |
| 10395 | short int ascii_mm[] = |
| 10396 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 10397 | short int ascii_ii[] = |
| 10398 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 10399 | int use_ascii (int i) { |
| 10400 | return ascii_mm[i] + ascii_ii[i]; |
| 10401 | } |
| 10402 | short int ebcdic_ii[] = |
| 10403 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 10404 | short int ebcdic_mm[] = |
| 10405 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 10406 | int use_ebcdic (int i) { |
| 10407 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 10408 | } |
| 10409 | extern int foo; |
| 10410 | |
| 10411 | int |
| 10412 | main () |
| 10413 | { |
| 10414 | return use_ascii (foo) == use_ebcdic (foo); |
| 10415 | ; |
| 10416 | return 0; |
| 10417 | } |
| 10418 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10419 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10420 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 10421 | ac_cv_c_bigendian=yes |
| 10422 | fi |
| 10423 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 10424 | if test "$ac_cv_c_bigendian" = unknown; then |
| 10425 | ac_cv_c_bigendian=no |
| 10426 | else |
| 10427 | # finding both strings is unlikely to happen, but who knows? |
| 10428 | ac_cv_c_bigendian=unknown |
| 10429 | fi |
| 10430 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10431 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10433 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10435 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10436 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10437 | int |
| 10438 | main () |
| 10439 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10440 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10441 | /* Are we little or big endian? From Harbison&Steele. */ |
| 10442 | union |
| 10443 | { |
| 10444 | long int l; |
| 10445 | char c[sizeof (long int)]; |
| 10446 | } u; |
| 10447 | u.l = 1; |
| 10448 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10449 | |
| 10450 | ; |
| 10451 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10452 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10453 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10454 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10455 | ac_cv_c_bigendian=no |
| 10456 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10457 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10458 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10459 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10460 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10461 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10462 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10463 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10464 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10466 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 10467 | case $ac_cv_c_bigendian in #( |
| 10468 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10469 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10470 | ;; #( |
| 10471 | no) |
| 10472 | ;; #( |
| 10473 | universal) |
| 10474 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10475 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10476 | |
| 10477 | ;; #( |
| 10478 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10479 | as_fn_error "unknown endianness |
| 10480 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10481 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10482 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10483 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 10484 | ASM_TYPES_HEADER=./asm_types.h |
| 10485 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 10486 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 10487 | > public_config.h |
| 10488 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 10489 | uniq tmp_config.$$ >> public_config.h |
| 10490 | else |
| 10491 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 10492 | fi |
| 10493 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 10494 | uniq tmp_config.$$ >> public_config.h |
| 10495 | else |
| 10496 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 10497 | fi |
| 10498 | rm -f tmp_config.$$ |
| 10499 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 10500 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10501 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10502 | do : |
| 10503 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 10504 | if test "x$ac_cv_header_inttypes_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10505 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10506 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10507 | _ACEOF |
| 10508 | |
| 10509 | fi |
| 10510 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 10511 | done |
| 10512 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10513 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 10514 | if test "x$ac_cv_type_intptr_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10515 | |
| 10516 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10517 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10518 | _ACEOF |
| 10519 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10520 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10521 | fi |
| 10522 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10524 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10525 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10526 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10527 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10529 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10530 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10531 | int |
| 10532 | main () |
| 10533 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10534 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10535 | ; |
| 10536 | return 0; |
| 10537 | } |
| 10538 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10539 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10540 | e2fsprogs_cv_struct_st_flags=yes |
| 10541 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10542 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10543 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10545 | fi |
| 10546 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10548 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10549 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10551 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10552 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10553 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10554 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10556 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10557 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10558 | int |
| 10559 | main () |
| 10560 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10561 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10562 | ; |
| 10563 | return 0; |
| 10564 | } |
| 10565 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10566 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10567 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 10568 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10569 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10570 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10572 | fi |
| 10573 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10575 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10576 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10577 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10578 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10579 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10580 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10581 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10582 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10583 | " |
| 10584 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10585 | |
| 10586 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10587 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10588 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10589 | |
| 10590 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10591 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10592 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10594 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10595 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10596 | $as_echo_n "(cached) " >&6 |
| 10597 | else |
| 10598 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10600 | /* end confdefs.h. */ |
| 10601 | |
| 10602 | /* Override any GCC internal prototype to avoid an error. |
| 10603 | Use char because int might match the return type of a GCC |
| 10604 | builtin and then its argument prototype would still apply. */ |
| 10605 | #ifdef __cplusplus |
| 10606 | extern "C" |
| 10607 | #endif |
| 10608 | char blkid_probe_all (); |
| 10609 | int |
| 10610 | main () |
| 10611 | { |
| 10612 | return blkid_probe_all (); |
| 10613 | ; |
| 10614 | return 0; |
| 10615 | } |
| 10616 | _ACEOF |
| 10617 | for ac_lib in '' blkid; do |
| 10618 | if test -z "$ac_lib"; then |
| 10619 | ac_res="none required" |
| 10620 | else |
| 10621 | ac_res=-l$ac_lib |
| 10622 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10623 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10624 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10625 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10626 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10627 | rm -f core conftest.err conftest.$ac_objext \ |
| 10628 | conftest$ac_exeext |
| 10629 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10630 | break |
| 10631 | fi |
| 10632 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10633 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
| 10634 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10635 | else |
| 10636 | ac_cv_search_blkid_probe_all=no |
| 10637 | fi |
| 10638 | rm conftest.$ac_ext |
| 10639 | LIBS=$ac_func_search_save_LIBS |
| 10640 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10642 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 10643 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10644 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10645 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10646 | |
| 10647 | fi |
| 10648 | |
| 10649 | fi |
Eric Sandeen | beb736b | 2009-10-21 03:43:02 -0400 | [diff] [blame] | 10650 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit blkid_probe_get_topology |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10651 | do : |
| 10652 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10653 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10654 | eval as_val=\$$as_ac_var |
| 10655 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10656 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10657 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10658 | _ACEOF |
| 10659 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10660 | fi |
| 10661 | done |
| 10662 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10663 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10665 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10666 | if test "${ac_cv_lib_socket_socket+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10667 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10668 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10669 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10670 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10672 | /* end confdefs.h. */ |
| 10673 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10674 | /* Override any GCC internal prototype to avoid an error. |
| 10675 | Use char because int might match the return type of a GCC |
| 10676 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10677 | #ifdef __cplusplus |
| 10678 | extern "C" |
| 10679 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10680 | char socket (); |
| 10681 | int |
| 10682 | main () |
| 10683 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10684 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10685 | ; |
| 10686 | return 0; |
| 10687 | } |
| 10688 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10689 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10690 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10691 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10692 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10693 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10694 | rm -f core conftest.err conftest.$ac_objext \ |
| 10695 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10696 | LIBS=$ac_check_lib_save_LIBS |
| 10697 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10699 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10700 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10701 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10702 | fi |
| 10703 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10704 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10706 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10707 | if test "${ac_cv_have_optreset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10708 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10709 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10711 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10712 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10713 | |
| 10714 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10715 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10716 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10717 | ac_cv_have_optreset=yes |
| 10718 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10719 | ac_cv_have_optreset=no |
| 10720 | fi |
| 10721 | rm -f conftest* |
| 10722 | |
| 10723 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10725 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10726 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10727 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10728 | |
| 10729 | fi |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10730 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10731 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
| 10732 | if test "x$ac_cv_func_sem_init" = x""yes; then : |
| 10733 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10734 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10736 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10737 | if test "${ac_cv_lib_pthread_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10738 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10739 | else |
| 10740 | ac_check_lib_save_LIBS=$LIBS |
| 10741 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10743 | /* end confdefs.h. */ |
| 10744 | |
| 10745 | /* Override any GCC internal prototype to avoid an error. |
| 10746 | Use char because int might match the return type of a GCC |
| 10747 | builtin and then its argument prototype would still apply. */ |
| 10748 | #ifdef __cplusplus |
| 10749 | extern "C" |
| 10750 | #endif |
| 10751 | char sem_init (); |
| 10752 | int |
| 10753 | main () |
| 10754 | { |
| 10755 | return sem_init (); |
| 10756 | ; |
| 10757 | return 0; |
| 10758 | } |
| 10759 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10760 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10761 | ac_cv_lib_pthread_sem_init=yes |
| 10762 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10763 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10764 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10765 | rm -f core conftest.err conftest.$ac_objext \ |
| 10766 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10767 | LIBS=$ac_check_lib_save_LIBS |
| 10768 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10770 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10771 | if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then : |
| 10772 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10773 | |
| 10774 | SEM_INIT_LIB=-lpthread |
| 10775 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10777 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10778 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10779 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10780 | else |
| 10781 | ac_check_lib_save_LIBS=$LIBS |
| 10782 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10784 | /* end confdefs.h. */ |
| 10785 | |
| 10786 | /* Override any GCC internal prototype to avoid an error. |
| 10787 | Use char because int might match the return type of a GCC |
| 10788 | builtin and then its argument prototype would still apply. */ |
| 10789 | #ifdef __cplusplus |
| 10790 | extern "C" |
| 10791 | #endif |
| 10792 | char sem_init (); |
| 10793 | int |
| 10794 | main () |
| 10795 | { |
| 10796 | return sem_init (); |
| 10797 | ; |
| 10798 | return 0; |
| 10799 | } |
| 10800 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10801 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10802 | ac_cv_lib_rt_sem_init=yes |
| 10803 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10804 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10805 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10806 | rm -f core conftest.err conftest.$ac_objext \ |
| 10807 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10808 | LIBS=$ac_check_lib_save_LIBS |
| 10809 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10811 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10812 | if test "x$ac_cv_lib_rt_sem_init" = x""yes; then : |
| 10813 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10814 | |
| 10815 | SEM_INIT_LIB=-lrt |
| 10816 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10818 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10819 | if test "${ac_cv_lib_posix4_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10820 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10821 | else |
| 10822 | ac_check_lib_save_LIBS=$LIBS |
| 10823 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10825 | /* end confdefs.h. */ |
| 10826 | |
| 10827 | /* Override any GCC internal prototype to avoid an error. |
| 10828 | Use char because int might match the return type of a GCC |
| 10829 | builtin and then its argument prototype would still apply. */ |
| 10830 | #ifdef __cplusplus |
| 10831 | extern "C" |
| 10832 | #endif |
| 10833 | char sem_init (); |
| 10834 | int |
| 10835 | main () |
| 10836 | { |
| 10837 | return sem_init (); |
| 10838 | ; |
| 10839 | return 0; |
| 10840 | } |
| 10841 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10842 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10843 | ac_cv_lib_posix4_sem_init=yes |
| 10844 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10845 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10846 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10847 | rm -f core conftest.err conftest.$ac_objext \ |
| 10848 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10849 | LIBS=$ac_check_lib_save_LIBS |
| 10850 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10852 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10853 | if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then : |
| 10854 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10855 | |
| 10856 | SEM_INIT_LIB=-lposix4 |
| 10857 | fi |
| 10858 | |
| 10859 | fi |
| 10860 | |
| 10861 | fi |
| 10862 | |
| 10863 | fi |
| 10864 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10866 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 10867 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 10868 | UNI_DIFF_OPTS=-u |
| 10869 | else |
| 10870 | UNI_DIFF_OPTS=-c |
| 10871 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10873 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 10874 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 10875 | case "$host_os" in |
| 10876 | linux*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10877 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10878 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 10879 | ;; |
| 10880 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 10881 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10882 | CYGWIN_CMT="#" |
| 10883 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 10884 | case "$host_os" in |
| 10885 | linux*) |
| 10886 | LINUX_CMT= |
| 10887 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10888 | cygwin) |
| 10889 | CYGWIN_CMT= |
| 10890 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10891 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 10892 | esac |
| 10893 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10894 | |
| 10895 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10896 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10897 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10898 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 10899 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10901 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10902 | fi |
| 10903 | ;; |
| 10904 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10905 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10906 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10907 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10908 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10910 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 10911 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10913 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 10914 | mandir=/usr/share/man |
| 10915 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10916 | fi |
| 10917 | ;; |
| 10918 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10919 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 10920 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10921 | root_prefix="$ac_default_prefix" |
| 10922 | else |
| 10923 | root_prefix="$prefix" |
| 10924 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 10925 | root_bindir=$bindir |
| 10926 | root_sbindir=$sbindir |
| 10927 | root_libdir=$libdir |
| 10928 | root_sysconfdir=$sysconfdir |
| 10929 | else |
| 10930 | root_bindir='${root_prefix}/bin' |
| 10931 | root_sbindir='${root_prefix}/sbin' |
| 10932 | root_libdir='${root_prefix}/lib' |
| 10933 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10934 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 10935 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 10936 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10938 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 10939 | fi |
| 10940 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 10941 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10943 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 10944 | fi |
| 10945 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 10946 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10948 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 10949 | fi |
| 10950 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 10951 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10953 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 10954 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10955 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10956 | |
| 10957 | |
| 10958 | |
| 10959 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10961 | $as_echo_n "checking whether linker accepts -static... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10962 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10963 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 10964 | else |
| 10965 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10967 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 10968 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10969 | int |
| 10970 | main () |
| 10971 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 10972 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10973 | ; |
| 10974 | return 0; |
| 10975 | } |
| 10976 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10977 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 10978 | ac_cv_e2fsprogs_use_static=yes |
| 10979 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10980 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 10981 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10982 | rm -f core conftest.err conftest.$ac_objext \ |
| 10983 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 10984 | LDFLAGS=$SAVE_LDFLAGS |
| 10985 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10986 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 10987 | case "$host_os" in |
| 10988 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10989 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 10990 | ;; |
| 10991 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10993 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 10994 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 10995 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10996 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 10997 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10998 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10999 | case "$host_os" in |
| 11000 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11002 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11003 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11004 | |
| 11005 | ;; |
| 11006 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11007 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 11008 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 11009 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11010 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11011 | if test "$cross_compiling" = yes ; then |
| 11012 | DO_TEST_SUITE= |
| 11013 | else |
| 11014 | DO_TEST_SUITE=check |
| 11015 | fi |
| 11016 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11017 | INTL_FLAGS= |
| 11018 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 11019 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 11020 | fi |
| 11021 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11022 | if test $cross_compiling = no; then |
| 11023 | BUILD_CFLAGS="$CFLAGS" |
| 11024 | BUILD_LDFLAGS="$LDFLAGS" |
| 11025 | else |
| 11026 | BUILD_CFLAGS= |
| 11027 | BUILD_LDFLAGS= |
| 11028 | fi |
| 11029 | |
| 11030 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11031 | test -d lib || mkdir lib |
| 11032 | test -d include || mkdir include |
| 11033 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11034 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 11035 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 11036 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 11037 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 11038 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11039 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 11040 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 11041 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 11042 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 11043 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11044 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 11045 | resize/Makefile doc/Makefile intl/Makefile \ |
| 11046 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11047 | if test -d `dirname ${srcdir}/$i` ; then |
| 11048 | outlist="$outlist $i" |
| 11049 | fi |
| 11050 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11051 | ac_config_files="$ac_config_files $outlist" |
| 11052 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11053 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11054 | # This file is a shell script that caches the results of configure |
| 11055 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11056 | # scripts and configure runs, see configure's option --config-cache. |
| 11057 | # It is not useful on other systems. If it contains results you don't |
| 11058 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11059 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11060 | # config.status only pays attention to the cache file if you give it |
| 11061 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11062 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11063 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11064 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11065 | # following values. |
| 11066 | |
| 11067 | _ACEOF |
| 11068 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11069 | # The following way of writing the cache mishandles newlines in values, |
| 11070 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11071 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11072 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11073 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11074 | ( |
| 11075 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11076 | eval ac_val=\$$ac_var |
| 11077 | case $ac_val in #( |
| 11078 | *${as_nl}*) |
| 11079 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11080 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11081 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11082 | esac |
| 11083 | case $ac_var in #( |
| 11084 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11085 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11086 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11087 | esac ;; |
| 11088 | esac |
| 11089 | done |
| 11090 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11091 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11092 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11093 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11094 | # `set' does not quote correctly, so add quotes: double-quote |
| 11095 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11096 | sed -n \ |
| 11097 | "s/'/'\\\\''/g; |
| 11098 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11099 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11100 | *) |
| 11101 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11102 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11103 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11104 | esac | |
| 11105 | sort |
| 11106 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11107 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11108 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11109 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11110 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11111 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11112 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11113 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11114 | :end' >>confcache |
| 11115 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11116 | if test -w "$cache_file"; then |
| 11117 | test "x$cache_file" != "x/dev/null" && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11119 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11120 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11121 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11123 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11124 | fi |
| 11125 | fi |
| 11126 | rm -f confcache |
| 11127 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11128 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11129 | # Let make expand exec_prefix. |
| 11130 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11131 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11132 | # Transform confdefs.h into DEFS. |
| 11133 | # Protect against shell expansion while executing Makefile rules. |
| 11134 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11135 | # |
| 11136 | # If the first sed substitution is executed (which looks for macros that |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11137 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11138 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11139 | ac_script=' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11140 | :mline |
| 11141 | /\\$/{ |
| 11142 | N |
| 11143 | s,\\\n,, |
| 11144 | b mline |
| 11145 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11146 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11147 | :clear |
| 11148 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11149 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11150 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11151 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11152 | b any |
| 11153 | :quote |
| 11154 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 11155 | s/\[/\\&/g |
| 11156 | s/\]/\\&/g |
| 11157 | s/\$/$$/g |
| 11158 | H |
| 11159 | :any |
| 11160 | ${ |
| 11161 | g |
| 11162 | s/^\n// |
| 11163 | s/\n/ /g |
| 11164 | p |
| 11165 | } |
| 11166 | ' |
| 11167 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11168 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11169 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11170 | ac_libobjs= |
| 11171 | ac_ltlibobjs= |
| 11172 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11173 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11174 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11175 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11176 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11177 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11178 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11179 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11180 | done |
| 11181 | LIBOBJS=$ac_libobjs |
| 11182 | |
| 11183 | LTLIBOBJS=$ac_ltlibobjs |
| 11184 | |
| 11185 | |
| 11186 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11187 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11188 | : ${CONFIG_STATUS=./config.status} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11189 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11190 | ac_clean_files_save=$ac_clean_files |
| 11191 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11193 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11194 | as_write_fail=0 |
| 11195 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11196 | #! $SHELL |
| 11197 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11198 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11199 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11200 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11201 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11202 | debug=false |
| 11203 | ac_cs_recheck=false |
| 11204 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11205 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11206 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11207 | export SHELL |
| 11208 | _ASEOF |
| 11209 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11210 | ## -------------------- ## |
| 11211 | ## M4sh Initialization. ## |
| 11212 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11213 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11214 | # Be more Bourne compatible |
| 11215 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11216 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11217 | emulate sh |
| 11218 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11219 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11220 | # is contrary to our usage. Disable this feature. |
| 11221 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11222 | setopt NO_GLOB_SUBST |
| 11223 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11224 | case `(set -o) 2>/dev/null` in #( |
| 11225 | *posix*) : |
| 11226 | set -o posix ;; #( |
| 11227 | *) : |
| 11228 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11229 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11230 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11231 | |
| 11232 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11233 | as_nl=' |
| 11234 | ' |
| 11235 | export as_nl |
| 11236 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11237 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11238 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11239 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11240 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11241 | # but without wasting forks for bash or zsh. |
| 11242 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11243 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11244 | as_echo='print -r --' |
| 11245 | as_echo_n='print -rn --' |
| 11246 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11247 | as_echo='printf %s\n' |
| 11248 | as_echo_n='printf %s' |
| 11249 | else |
| 11250 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11251 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11252 | as_echo_n='/usr/ucb/echo -n' |
| 11253 | else |
| 11254 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11255 | as_echo_n_body='eval |
| 11256 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11257 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11258 | *"$as_nl"*) |
| 11259 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11260 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11261 | esac; |
| 11262 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11263 | ' |
| 11264 | export as_echo_n_body |
| 11265 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11266 | fi |
| 11267 | export as_echo_body |
| 11268 | as_echo='sh -c $as_echo_body as_echo' |
| 11269 | fi |
| 11270 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11271 | # The user is always right. |
| 11272 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11273 | PATH_SEPARATOR=: |
| 11274 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11275 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11276 | PATH_SEPARATOR=';' |
| 11277 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11278 | fi |
| 11279 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11280 | |
| 11281 | # IFS |
| 11282 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11283 | # there to prevent editors from complaining about space-tab. |
| 11284 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11285 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11286 | IFS=" "" $as_nl" |
| 11287 | |
| 11288 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11289 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11290 | *[\\/]* ) as_myself=$0 ;; |
| 11291 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11292 | for as_dir in $PATH |
| 11293 | do |
| 11294 | IFS=$as_save_IFS |
| 11295 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11296 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11297 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11298 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11299 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11300 | ;; |
| 11301 | esac |
| 11302 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11303 | # in which case we are not to be found in the path. |
| 11304 | if test "x$as_myself" = x; then |
| 11305 | as_myself=$0 |
| 11306 | fi |
| 11307 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11308 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11309 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11310 | fi |
| 11311 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11312 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11313 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11314 | # suppresses any "Segmentation fault" message there. '((' could |
| 11315 | # trigger a bug in pdksh 5.2.14. |
| 11316 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11317 | do eval test x\${$as_var+set} = xset \ |
| 11318 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11319 | done |
| 11320 | PS1='$ ' |
| 11321 | PS2='> ' |
| 11322 | PS4='+ ' |
| 11323 | |
| 11324 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11325 | LC_ALL=C |
| 11326 | export LC_ALL |
| 11327 | LANGUAGE=C |
| 11328 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11329 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11330 | # CDPATH. |
| 11331 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11332 | |
| 11333 | |
| 11334 | # as_fn_error ERROR [LINENO LOG_FD] |
| 11335 | # --------------------------------- |
| 11336 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11337 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 11338 | # script with status $?, using 1 if that was 0. |
| 11339 | as_fn_error () |
| 11340 | { |
| 11341 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 11342 | if test "$3"; then |
| 11343 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11344 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 11345 | fi |
| 11346 | $as_echo "$as_me: error: $1" >&2 |
| 11347 | as_fn_exit $as_status |
| 11348 | } # as_fn_error |
| 11349 | |
| 11350 | |
| 11351 | # as_fn_set_status STATUS |
| 11352 | # ----------------------- |
| 11353 | # Set $? to STATUS, without forking. |
| 11354 | as_fn_set_status () |
| 11355 | { |
| 11356 | return $1 |
| 11357 | } # as_fn_set_status |
| 11358 | |
| 11359 | # as_fn_exit STATUS |
| 11360 | # ----------------- |
| 11361 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11362 | as_fn_exit () |
| 11363 | { |
| 11364 | set +e |
| 11365 | as_fn_set_status $1 |
| 11366 | exit $1 |
| 11367 | } # as_fn_exit |
| 11368 | |
| 11369 | # as_fn_unset VAR |
| 11370 | # --------------- |
| 11371 | # Portably unset VAR. |
| 11372 | as_fn_unset () |
| 11373 | { |
| 11374 | { eval $1=; unset $1;} |
| 11375 | } |
| 11376 | as_unset=as_fn_unset |
| 11377 | # as_fn_append VAR VALUE |
| 11378 | # ---------------------- |
| 11379 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11380 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11381 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11382 | # implementations. |
| 11383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11384 | eval 'as_fn_append () |
| 11385 | { |
| 11386 | eval $1+=\$2 |
| 11387 | }' |
| 11388 | else |
| 11389 | as_fn_append () |
| 11390 | { |
| 11391 | eval $1=\$$1\$2 |
| 11392 | } |
| 11393 | fi # as_fn_append |
| 11394 | |
| 11395 | # as_fn_arith ARG... |
| 11396 | # ------------------ |
| 11397 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11399 | # must be portable across $(()) and expr. |
| 11400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11401 | eval 'as_fn_arith () |
| 11402 | { |
| 11403 | as_val=$(( $* )) |
| 11404 | }' |
| 11405 | else |
| 11406 | as_fn_arith () |
| 11407 | { |
| 11408 | as_val=`expr "$@" || test $? -eq 1` |
| 11409 | } |
| 11410 | fi # as_fn_arith |
| 11411 | |
| 11412 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11413 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11414 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11415 | as_expr=expr |
| 11416 | else |
| 11417 | as_expr=false |
| 11418 | fi |
| 11419 | |
| 11420 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11421 | as_basename=basename |
| 11422 | else |
| 11423 | as_basename=false |
| 11424 | fi |
| 11425 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11426 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11427 | as_dirname=dirname |
| 11428 | else |
| 11429 | as_dirname=false |
| 11430 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11431 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11432 | as_me=`$as_basename -- "$0" || |
| 11433 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11434 | X"$0" : 'X\(//\)$' \| \ |
| 11435 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11436 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11437 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11438 | s//\1/ |
| 11439 | q |
| 11440 | } |
| 11441 | /^X\/\(\/\/\)$/{ |
| 11442 | s//\1/ |
| 11443 | q |
| 11444 | } |
| 11445 | /^X\/\(\/\).*/{ |
| 11446 | s//\1/ |
| 11447 | q |
| 11448 | } |
| 11449 | s/.*/./; q'` |
| 11450 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11451 | # Avoid depending upon Character Ranges. |
| 11452 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11453 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11454 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11455 | as_cr_digits='0123456789' |
| 11456 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11457 | |
| 11458 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11459 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11460 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11461 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11463 | xy) ECHO_C='\c';; |
| 11464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11465 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11466 | esac;; |
| 11467 | *) |
| 11468 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11469 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11470 | |
| 11471 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11472 | if test -d conf$$.dir; then |
| 11473 | rm -f conf$$.dir/conf$$.file |
| 11474 | else |
| 11475 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11476 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11477 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11478 | if (echo >conf$$.file) 2>/dev/null; then |
| 11479 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11480 | as_ln_s='ln -s' |
| 11481 | # ... but there are two gotchas: |
| 11482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 11484 | # In both cases, we have to default to `cp -p'. |
| 11485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 11486 | as_ln_s='cp -p' |
| 11487 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11488 | as_ln_s=ln |
| 11489 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11490 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11491 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11492 | else |
| 11493 | as_ln_s='cp -p' |
| 11494 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11496 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11497 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11498 | |
| 11499 | # as_fn_mkdir_p |
| 11500 | # ------------- |
| 11501 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11502 | as_fn_mkdir_p () |
| 11503 | { |
| 11504 | |
| 11505 | case $as_dir in #( |
| 11506 | -*) as_dir=./$as_dir;; |
| 11507 | esac |
| 11508 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11509 | as_dirs= |
| 11510 | while :; do |
| 11511 | case $as_dir in #( |
| 11512 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11513 | *) as_qdir=$as_dir;; |
| 11514 | esac |
| 11515 | as_dirs="'$as_qdir' $as_dirs" |
| 11516 | as_dir=`$as_dirname -- "$as_dir" || |
| 11517 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11518 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11519 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11520 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11521 | $as_echo X"$as_dir" | |
| 11522 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11523 | s//\1/ |
| 11524 | q |
| 11525 | } |
| 11526 | /^X\(\/\/\)[^/].*/{ |
| 11527 | s//\1/ |
| 11528 | q |
| 11529 | } |
| 11530 | /^X\(\/\/\)$/{ |
| 11531 | s//\1/ |
| 11532 | q |
| 11533 | } |
| 11534 | /^X\(\/\).*/{ |
| 11535 | s//\1/ |
| 11536 | q |
| 11537 | } |
| 11538 | s/.*/./; q'` |
| 11539 | test -d "$as_dir" && break |
| 11540 | done |
| 11541 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 11542 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 11543 | |
| 11544 | |
| 11545 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11546 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11547 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11548 | else |
| 11549 | test -d ./-p && rmdir ./-p |
| 11550 | as_mkdir_p=false |
| 11551 | fi |
| 11552 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11553 | if test -x / >/dev/null 2>&1; then |
| 11554 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11555 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11556 | if ls -dL / >/dev/null 2>&1; then |
| 11557 | as_ls_L_option=L |
| 11558 | else |
| 11559 | as_ls_L_option= |
| 11560 | fi |
| 11561 | as_test_x=' |
| 11562 | eval sh -c '\'' |
| 11563 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11564 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11565 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11566 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11567 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11568 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11569 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11570 | ???[sx]*):;;*)false;;esac;fi |
| 11571 | '\'' sh |
| 11572 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11573 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11574 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11575 | |
| 11576 | # Sed expression to map a string onto a valid CPP name. |
| 11577 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11578 | |
| 11579 | # Sed expression to map a string onto a valid variable name. |
| 11580 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11581 | |
| 11582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11583 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11584 | ## ----------------------------------- ## |
| 11585 | ## Main body of $CONFIG_STATUS script. ## |
| 11586 | ## ----------------------------------- ## |
| 11587 | _ASEOF |
| 11588 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11589 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11590 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11591 | # Save the log message, to keep $0 and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11592 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11593 | # values after options handling. |
| 11594 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11595 | This file was extended by $as_me, which was |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11596 | generated by GNU Autoconf 2.64. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11597 | |
| 11598 | CONFIG_FILES = $CONFIG_FILES |
| 11599 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11600 | CONFIG_LINKS = $CONFIG_LINKS |
| 11601 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11602 | $ $0 $@ |
| 11603 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11604 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11605 | " |
| 11606 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11607 | _ACEOF |
| 11608 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11609 | case $ac_config_files in *" |
| 11610 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 11611 | esac |
| 11612 | |
| 11613 | |
| 11614 | |
| 11615 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11616 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11617 | config_files="$ac_config_files" |
| 11618 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11619 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11620 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11621 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11622 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11623 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11624 | \`$as_me' instantiates files and other configuration actions |
| 11625 | from templates according to the current configuration. Unless the files |
| 11626 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11627 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11628 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11629 | |
| 11630 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11631 | -V, --version print version number and configuration settings, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11632 | -q, --quiet, --silent |
| 11633 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11634 | -d, --debug don't remove temporary files |
| 11635 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11636 | --file=FILE[:TEMPLATE] |
| 11637 | instantiate the configuration file FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11638 | |
| 11639 | Configuration files: |
| 11640 | $config_files |
| 11641 | |
| 11642 | Configuration commands: |
| 11643 | $config_commands |
| 11644 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11645 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11646 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11647 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11648 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11649 | ac_cs_version="\\ |
| 11650 | config.status |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11651 | configured by $0, generated by GNU Autoconf 2.64, |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11652 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11653 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11654 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11655 | This config.status script is free software; the Free Software Foundation |
| 11656 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11657 | |
| 11658 | ac_pwd='$ac_pwd' |
| 11659 | srcdir='$srcdir' |
| 11660 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11661 | AWK='$AWK' |
| 11662 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11663 | _ACEOF |
| 11664 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11666 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11667 | ac_need_defaults=: |
| 11668 | while test $# != 0 |
| 11669 | do |
| 11670 | case $1 in |
| 11671 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11672 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11673 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11674 | ac_shift=: |
| 11675 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11676 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11677 | ac_option=$1 |
| 11678 | ac_optarg=$2 |
| 11679 | ac_shift=shift |
| 11680 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11681 | esac |
| 11682 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11683 | case $ac_option in |
| 11684 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11685 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 11686 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11687 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11688 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11689 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11690 | debug=: ;; |
| 11691 | --file | --fil | --fi | --f ) |
| 11692 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11693 | case $ac_optarg in |
| 11694 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 11695 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11696 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11697 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11698 | --he | --h | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11699 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11700 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11701 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11702 | ac_cs_silent=: ;; |
| 11703 | |
| 11704 | # This is an error. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11705 | -*) as_fn_error "unrecognized option: \`$1' |
| 11706 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11707 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11708 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11709 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11710 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11711 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11712 | shift |
| 11713 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11714 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11715 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11716 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11717 | if $ac_cs_silent; then |
| 11718 | exec 6>/dev/null |
| 11719 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11720 | fi |
| 11721 | |
| 11722 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11724 | if \$ac_cs_recheck; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11725 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 11726 | shift |
| 11727 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 11728 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11729 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11730 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11731 | fi |
| 11732 | |
| 11733 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11734 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11735 | exec 5>>config.log |
| 11736 | { |
| 11737 | echo |
| 11738 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11739 | ## Running $as_me. ## |
| 11740 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11741 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11742 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11743 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11744 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11745 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11746 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11747 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11748 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11749 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11750 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11751 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11752 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11753 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 11754 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11755 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11756 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11757 | _ACEOF |
| 11758 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11759 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11760 | |
| 11761 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11762 | for ac_config_target in $ac_config_targets |
| 11763 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11764 | case $ac_config_target in |
| 11765 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 11766 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 11767 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11768 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11769 | esac |
| 11770 | done |
| 11771 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11772 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11773 | # If the user did not use the arguments to specify the items to instantiate, |
| 11774 | # then the envvar interface is used. Set only those that are not. |
| 11775 | # We use the long form for the default assignment because of an extremely |
| 11776 | # bizarre bug on SunOS 4.1.3. |
| 11777 | if $ac_need_defaults; then |
| 11778 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 11779 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 11780 | fi |
| 11781 | |
| 11782 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11783 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11784 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11785 | # Hook for its removal unless debugging. |
| 11786 | # Note that there is a small window in which the directory will not be cleaned: |
| 11787 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11788 | $debug || |
| 11789 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11790 | tmp= |
| 11791 | trap 'exit_status=$? |
| 11792 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 11793 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11794 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11795 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11796 | # Create a (secure) tmp directory for tmp files. |
| 11797 | |
| 11798 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11799 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11800 | test -n "$tmp" && test -d "$tmp" |
| 11801 | } || |
| 11802 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11803 | tmp=./conf$$-$RANDOM |
| 11804 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11805 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11806 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11807 | # Set up the scripts for CONFIG_FILES section. |
| 11808 | # No need to generate them if there are no CONFIG_FILES. |
| 11809 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11810 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11811 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11812 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 11813 | ac_cs_awk_getline=: |
| 11814 | ac_cs_awk_pipe_init= |
| 11815 | ac_cs_awk_read_file=' |
| 11816 | while ((getline aline < (F[key])) > 0) |
| 11817 | print(aline) |
| 11818 | close(F[key])' |
| 11819 | ac_cs_awk_pipe_fini= |
| 11820 | else |
| 11821 | ac_cs_awk_getline=false |
| 11822 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 11823 | ac_cs_awk_read_file=' |
| 11824 | print "|#_!!_#|" |
| 11825 | print "cat " F[key] " &&" |
| 11826 | '$ac_cs_awk_pipe_init |
| 11827 | # The final `:' finishes the AND list. |
| 11828 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 11829 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11830 | ac_cr=`echo X | tr X '\015'` |
| 11831 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 11832 | # But we know of no other shell where ac_cr would be empty at this |
| 11833 | # point, so we can use a bashism as a fallback. |
| 11834 | if test "x$ac_cr" = x; then |
| 11835 | eval ac_cr=\$\'\\r\' |
| 11836 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11837 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 11838 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11839 | ac_cs_awk_cr='\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11840 | else |
| 11841 | ac_cs_awk_cr=$ac_cr |
| 11842 | fi |
| 11843 | |
| 11844 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11845 | _ACEOF |
| 11846 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11847 | # Create commands to substitute file output variables. |
| 11848 | { |
| 11849 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 11850 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 11851 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 11852 | echo "_ACAWK" && |
| 11853 | echo "_ACEOF" |
| 11854 | } >conf$$files.sh && |
| 11855 | . ./conf$$files.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11856 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11857 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11858 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11859 | { |
| 11860 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 11861 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 11862 | echo "_ACEOF" |
| 11863 | } >conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11864 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11865 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11866 | ac_delim='%!_!# ' |
| 11867 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11868 | . ./conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11869 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11870 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11871 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 11872 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11873 | break |
| 11874 | elif $ac_last_try; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11875 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11876 | else |
| 11877 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11878 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11879 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11880 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11881 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11882 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 11883 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11884 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11885 | sed -n ' |
| 11886 | h |
| 11887 | s/^/S["/; s/!.*/"]=/ |
| 11888 | p |
| 11889 | g |
| 11890 | s/^[^!]*!// |
| 11891 | :repl |
| 11892 | t repl |
| 11893 | s/'"$ac_delim"'$// |
| 11894 | t delim |
| 11895 | :nl |
| 11896 | h |
| 11897 | s/\(.\{148\}\).*/\1/ |
| 11898 | t more1 |
| 11899 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 11900 | p |
| 11901 | n |
| 11902 | b repl |
| 11903 | :more1 |
| 11904 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 11905 | p |
| 11906 | g |
| 11907 | s/.\{148\}// |
| 11908 | t nl |
| 11909 | :delim |
| 11910 | h |
| 11911 | s/\(.\{148\}\).*/\1/ |
| 11912 | t more2 |
| 11913 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 11914 | p |
| 11915 | b |
| 11916 | :more2 |
| 11917 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 11918 | p |
| 11919 | g |
| 11920 | s/.\{148\}// |
| 11921 | t delim |
| 11922 | ' <conf$$subs.awk | sed ' |
| 11923 | /^[^""]/{ |
| 11924 | N |
| 11925 | s/\n// |
| 11926 | } |
| 11927 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 11928 | rm -f conf$$subs.awk |
| 11929 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 11930 | _ACAWK |
| 11931 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 11932 | for (key in S) S_is_set[key] = 1 |
| 11933 | FS = "" |
| 11934 | \$ac_cs_awk_pipe_init |
| 11935 | } |
| 11936 | { |
| 11937 | line = $ 0 |
| 11938 | nfields = split(line, field, "@") |
| 11939 | substed = 0 |
| 11940 | len = length(field[1]) |
| 11941 | for (i = 2; i < nfields; i++) { |
| 11942 | key = field[i] |
| 11943 | keylen = length(key) |
| 11944 | if (S_is_set[key]) { |
| 11945 | value = S[key] |
| 11946 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 11947 | len += length(value) + length(field[++i]) |
| 11948 | substed = 1 |
| 11949 | } else |
| 11950 | len += 1 + keylen |
| 11951 | } |
| 11952 | if (nfields == 3 && !substed) { |
| 11953 | key = field[2] |
| 11954 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 11955 | \$ac_cs_awk_read_file |
| 11956 | next |
| 11957 | } |
| 11958 | } |
| 11959 | print line |
| 11960 | } |
| 11961 | \$ac_cs_awk_pipe_fini |
| 11962 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11963 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11964 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11965 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 11966 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 11967 | else |
| 11968 | cat |
| 11969 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11970 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11971 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11972 | |
| 11973 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 11974 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 11975 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 11976 | # (actually we leave an empty line to preserve line numbers). |
| 11977 | if test "x$srcdir" = x.; then |
| 11978 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 11979 | s/:*\$(srcdir):*/:/ |
| 11980 | s/:*\${srcdir}:*/:/ |
| 11981 | s/:*@srcdir@:*/:/ |
| 11982 | s/^\([^=]*=[ ]*\):*/\1/ |
| 11983 | s/:*$// |
| 11984 | s/^[^=]*=[ ]*$// |
| 11985 | }' |
| 11986 | fi |
| 11987 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11988 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11989 | fi # test -n "$CONFIG_FILES" |
| 11990 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11991 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11992 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
| 11993 | shift |
| 11994 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11995 | do |
| 11996 | case $ac_tag in |
| 11997 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 11998 | esac |
| 11999 | case $ac_mode$ac_tag in |
| 12000 | :[FHL]*:*);; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12001 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12002 | :[FH]-) ac_tag=-:-;; |
| 12003 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12004 | esac |
| 12005 | ac_save_IFS=$IFS |
| 12006 | IFS=: |
| 12007 | set x $ac_tag |
| 12008 | IFS=$ac_save_IFS |
| 12009 | shift |
| 12010 | ac_file=$1 |
| 12011 | shift |
| 12012 | |
| 12013 | case $ac_mode in |
| 12014 | :L) ac_source=$1;; |
| 12015 | :[FH]) |
| 12016 | ac_file_inputs= |
| 12017 | for ac_f |
| 12018 | do |
| 12019 | case $ac_f in |
| 12020 | -) ac_f="$tmp/stdin";; |
| 12021 | *) # Look for the file first in the build tree, then in the source tree |
| 12022 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12023 | # because $ac_f cannot contain `:'. |
| 12024 | test -f "$ac_f" || |
| 12025 | case $ac_f in |
| 12026 | [\\/$]*) false;; |
| 12027 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12028 | esac || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12029 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12030 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12031 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12032 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12033 | done |
| 12034 | |
| 12035 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12036 | # use $as_me), people would be surprised to read: |
| 12037 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12038 | configure_input='Generated from '` |
| 12039 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12040 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12041 | if test x"$ac_file" != x-; then |
| 12042 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12043 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12044 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12045 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12046 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12047 | case $configure_input in #( |
| 12048 | *\&* | *\|* | *\\* ) |
| 12049 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12050 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12051 | *) ac_sed_conf_input=$configure_input;; |
| 12052 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12053 | |
| 12054 | case $ac_tag in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12055 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12056 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12057 | esac |
| 12058 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12059 | esac |
| 12060 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12061 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12062 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12063 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12064 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12065 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12066 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12067 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12068 | s//\1/ |
| 12069 | q |
| 12070 | } |
| 12071 | /^X\(\/\/\)[^/].*/{ |
| 12072 | s//\1/ |
| 12073 | q |
| 12074 | } |
| 12075 | /^X\(\/\/\)$/{ |
| 12076 | s//\1/ |
| 12077 | q |
| 12078 | } |
| 12079 | /^X\(\/\).*/{ |
| 12080 | s//\1/ |
| 12081 | q |
| 12082 | } |
| 12083 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12084 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12085 | ac_builddir=. |
| 12086 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12087 | case "$ac_dir" in |
| 12088 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12089 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12090 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12091 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12092 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12093 | case $ac_top_builddir_sub in |
| 12094 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12095 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12096 | esac ;; |
| 12097 | esac |
| 12098 | ac_abs_top_builddir=$ac_pwd |
| 12099 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12100 | # for backward compatibility: |
| 12101 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12102 | |
| 12103 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12104 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12105 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12106 | ac_top_srcdir=$ac_top_builddir_sub |
| 12107 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12108 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12109 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12110 | ac_top_srcdir=$srcdir |
| 12111 | ac_abs_top_srcdir=$srcdir ;; |
| 12112 | *) # Relative name. |
| 12113 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12114 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12115 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12116 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12117 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12118 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12119 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12120 | case $ac_mode in |
| 12121 | :F) |
| 12122 | # |
| 12123 | # CONFIG_FILE |
| 12124 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12125 | |
| 12126 | case $INSTALL in |
| 12127 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12128 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12129 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12130 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12131 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12132 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12133 | # If the template does not know about datarootdir, expand it. |
| 12134 | # FIXME: This hack should be removed a few years after 2.60. |
| 12135 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12136 | ac_sed_dataroot=' |
| 12137 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12138 | p |
| 12139 | q |
| 12140 | } |
| 12141 | /@datadir@/p |
| 12142 | /@docdir@/p |
| 12143 | /@infodir@/p |
| 12144 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12145 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12146 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12147 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12148 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12150 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12151 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12152 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12153 | ac_datarootdir_hack=' |
| 12154 | s&@datadir@&$datadir&g |
| 12155 | s&@docdir@&$docdir&g |
| 12156 | s&@infodir@&$infodir&g |
| 12157 | s&@localedir@&$localedir&g |
| 12158 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12159 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12160 | esac |
| 12161 | _ACEOF |
| 12162 | |
| 12163 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12164 | # Shell code in configure.ac might set extrasub. |
| 12165 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12166 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12167 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12168 | $extrasub |
| 12169 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12170 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12171 | :t |
| 12172 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12173 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12174 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12175 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12176 | s&@srcdir@&$ac_srcdir&;t t |
| 12177 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12178 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12179 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12180 | s&@builddir@&$ac_builddir&;t t |
| 12181 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12182 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12183 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12184 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12185 | " |
| 12186 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 12187 | if $ac_cs_awk_getline; then |
| 12188 | $AWK -f "$tmp/subs.awk" |
| 12189 | else |
| 12190 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 12191 | fi >$tmp/out \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12192 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12193 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12194 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 12195 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 12196 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12198 | which seems to be undefined. Please make sure it is defined." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12199 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12200 | which seems to be undefined. Please make sure it is defined." >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12201 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12202 | rm -f "$tmp/stdin" |
| 12203 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12204 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 12205 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 12206 | esac \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12207 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12208 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12209 | |
| 12210 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12211 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12212 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12213 | ;; |
| 12214 | esac |
| 12215 | |
| 12216 | |
| 12217 | case $ac_file$ac_mode in |
| 12218 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12219 | for ac_file in $CONFIG_FILES; do |
| 12220 | # Support "outfile[:infile[:infile...]]" |
| 12221 | case "$ac_file" in |
| 12222 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 12223 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12224 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12225 | case "$ac_file" in */Makefile.in) |
| 12226 | # Adjust a relative srcdir. |
| 12227 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12228 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12229 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12230 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12231 | # In autoconf-2.50 it is called $srcdir. |
| 12232 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12233 | case "$ac_given_srcdir" in |
| 12234 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12235 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12236 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12237 | esac |
| 12238 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12239 | rm -f "$ac_dir/POTFILES" |
| 12240 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12241 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12242 | POMAKEFILEDEPS="POTFILES.in" |
| 12243 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12244 | # on $ac_dir but don't depend on user-specified configuration |
| 12245 | # parameters. |
| 12246 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12247 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12248 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12249 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12250 | fi |
| 12251 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12252 | # Hide the ALL_LINGUAS assigment from automake. |
| 12253 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12254 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12255 | else |
| 12256 | # The set of available languages was given in configure.in. |
| 12257 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12258 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12259 | # Compute POFILES |
| 12260 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12261 | # Compute UPDATEPOFILES |
| 12262 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12263 | # Compute DUMMYPOFILES |
| 12264 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12265 | # Compute GMOFILES |
| 12266 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12267 | case "$ac_given_srcdir" in |
| 12268 | .) srcdirpre= ;; |
| 12269 | *) srcdirpre='$(srcdir)/' ;; |
| 12270 | esac |
| 12271 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12272 | UPDATEPOFILES= |
| 12273 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12274 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12275 | for lang in $ALL_LINGUAS; do |
| 12276 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12277 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12278 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12279 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12280 | done |
| 12281 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12282 | # environment variable. |
| 12283 | INST_LINGUAS= |
| 12284 | if test -n "$ALL_LINGUAS"; then |
| 12285 | for presentlang in $ALL_LINGUAS; do |
| 12286 | useit=no |
| 12287 | if test "%UNSET%" != "$LINGUAS"; then |
| 12288 | desiredlanguages="$LINGUAS" |
| 12289 | else |
| 12290 | desiredlanguages="$ALL_LINGUAS" |
| 12291 | fi |
| 12292 | for desiredlang in $desiredlanguages; do |
| 12293 | # Use the presentlang catalog if desiredlang is |
| 12294 | # a. equal to presentlang, or |
| 12295 | # b. a variant of presentlang (because in this case, |
| 12296 | # presentlang can be used as a fallback for messages |
| 12297 | # which are not translated in the desiredlang catalog). |
| 12298 | case "$desiredlang" in |
| 12299 | "$presentlang"*) useit=yes;; |
| 12300 | esac |
| 12301 | done |
| 12302 | if test $useit = yes; then |
| 12303 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12304 | fi |
| 12305 | done |
| 12306 | fi |
| 12307 | CATALOGS= |
| 12308 | if test -n "$INST_LINGUAS"; then |
| 12309 | for lang in $INST_LINGUAS; do |
| 12310 | CATALOGS="$CATALOGS $lang.gmo" |
| 12311 | done |
| 12312 | fi |
| 12313 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12314 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12315 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12316 | if test -f "$f"; then |
| 12317 | case "$f" in |
| 12318 | *.orig | *.bak | *~) ;; |
| 12319 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12320 | esac |
| 12321 | fi |
| 12322 | done |
| 12323 | fi |
| 12324 | ;; |
| 12325 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12326 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12327 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12328 | esac |
| 12329 | done # for ac_tag |
| 12330 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12331 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12332 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12333 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12334 | ac_clean_files=$ac_clean_files_save |
| 12335 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12336 | test $ac_write_fail = 0 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12337 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12338 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12339 | |
| 12340 | # configure is writing to config.log, and then calls config.status. |
| 12341 | # config.status does its own redirection, appending to config.log. |
| 12342 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12343 | # by configure, so config.status won't be able to write to it; its |
| 12344 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12345 | # effectively closing config.log, so it can be properly (re)opened and |
| 12346 | # appended to by config.status. When coming back to configure, we |
| 12347 | # need to make the FD available again. |
| 12348 | if test "$no_create" != yes; then |
| 12349 | ac_cs_success=: |
| 12350 | ac_config_status_args= |
| 12351 | test "$silent" = yes && |
| 12352 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12353 | exec 5>/dev/null |
| 12354 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12355 | exec 5>>config.log |
| 12356 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12357 | # would make configure fail if this is the last instruction. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12358 | $ac_cs_success || as_fn_exit $? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12359 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12360 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12362 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12363 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12364 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 12365 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |